Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optionally allow subrefs instead of opstrings #2

Open
patch opened this issue Dec 27, 2010 · 0 comments
Open

optionally allow subrefs instead of opstrings #2

patch opened this issue Dec 27, 2010 · 0 comments

Comments

@patch
Copy link
Collaborator

patch commented Dec 27, 2010

Optionally allow the first argument to be a subroutine ref instead of an operator string.

zip sub { "a: $_[0]; b: $_[1]" }, \@array1, \@array2;

Using zip, this provides no benefit over pairwise from List::MoreUtils:

# List::MoreUtils
pairwise { "a: $a; b: $b" } @array1, @array2;

However, it wouldn't hurt as an option, especially since we aren't using prototypes, and List::MoreUtils doesn't provide alternatives for cross and hyper.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant