Skip to content

Commit dec4bda

Browse files
committed
spec multi-arity limit closures for sequence operator
1 parent 763b4b3 commit dec4bda

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

S03-operators.pod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1835,6 +1835,9 @@ matching> below), the usual smartmatching rules apply. If the
18351835
limit is C<*>, the sequence has no limit. If the limit is a closure,
18361836
it will be evaluated for boolean truth on the current candidate,
18371837
and the sequence will continue as long as the closure returns false.
1838+
If the limit is a closure with more than 1 - or infinite - arguments
1839+
the appropriate number of elements from the end of the sequence
1840+
- or the whole sequence so far - are passed.
18381841
It's quite possible for a sequence to return fewer values than are
18391842
listed if the very first value matches the end test:
18401843

0 commit comments

Comments
 (0)