lib/core/facets/array/permutation.rb in facets-2.4.5 vs lib/core/facets/array/permutation.rb in facets-2.5.0
- old
+ new
@@ -4,10 +4,10 @@
# Permutation provids the possible orders of an enumerable.
# Each is indexed by a permutation number. The maximum number of
# arrangements is the factorial of the size of the array.
#
- # CREDIT: Shin-ichiro Hara
+ # CREDIT: Shin-ichiro Hara
def permutation(n=size)
if size < n or n < 0
elsif n == 0
yield([])