Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Do not return the previous value when generator function of sequence …
…calls 'last'
fixes things like 'say 10,9,8, { diff - 1 || last } ... *'- Loading branch information
bc08619There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The example evaluation in the commit message contains a copy-and-pasto. Correct code:
say 10,9,8, { $_ - 1 || last } ... *