in reply to Re^12: Specializing Functions with Currying
in thread Specializing Functions with Currying
Oops.
Interesting, also, that the XS version does short-circuit. I looked at the source and thought I could see that, but I don't know XS so to be sure, I tested. And lo:
$ perl -MList::Util=first -le'@_=(0)x100; first { ++$a; $_ == 0 } @_; +print $a' 1
Hmm.
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^14: Specializing Functions with Currying
by adrianh (Chancellor) on Aug 09, 2004 at 16:19 UTC |