Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Give more details for edgecases in .combinations()
  • Loading branch information
zoffixznet committed Dec 28, 2016
1 parent 61932b8 commit f95f627
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions doc/Type/List.pod6
Expand Up @@ -866,6 +866,13 @@ C<(^$n).combinations($k)>, so
# 1 3
# 2 3
If C<$k> is negative or is larger than there are items in the given list, an
empty list will be returned. If C<$k> is zero, a 1-item list containing an empty
list will be returned (there's exactly 1 way to pick no items).
B<Note:> some implementations may limit the maximum C<$n>. On Rakudo, 64-bit
systems have a limit of C<2³¹-1> and 32-bit systems have a limit of C<2²⁸-1>.
=head2 routine permutations
Defined as:
Expand Down

0 comments on commit f95f627

Please sign in to comment.