2017 © Pedro PelĂĄez
 

library permutation

A small library for handling permutations of arrays

image

jhgundersen/permutation

A small library for handling permutations of arrays

  • Saturday, May 23, 2015
  • by jhgundersen
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Permutation

Welcome to this little library for handling all permutations of an array., (*1)

Example

To iterate through all possible combinations of values in an array use the ArrayPermuter, (*2)

$array = new ArrayPermuter([1,2,3]);
$array->walk(function($permutation){
    // do something
});

License

Copyright (c) 2015 Jon HÄvard Gundersen, (*3)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:, (*4)

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software., (*5)

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE., (*6)

The Versions

23/05 2015

dev-master

9999999-dev https://github.com/jhgundersen/permutation

A small library for handling permutations of arrays

  Sources   Download

MIT

The Development Requires

by Jon HÄvard Gundersen

math permutation