Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding topic ($_) support for map, grep, first and each on Array (res…
…olves issue #97)
- Loading branch information
Stevan Little
committed
May 3, 2013
1 parent
a64d265
commit 1f0e138
Showing
2 changed files
with
41 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1f0e138
There 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.
This is setting
$_
in addition to the variable specified in the signature. Perl6 sets the topic variable$_
, only if no signature was specified.Moe:
Perl6:
1f0e138
There 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.
@prakashk I thought about that, I am not sure how I feel about it. I will need to give it some thought. That said it is easy to add in later.