in reply to Re: Functional Composition
in thread Functional Composition
I stand corrected, I chose '|' pretty arbitrarily to mimic unix pipes, and assumed that the left operand would always be evaluated first. I do know what "left associative" means though, there was an "and" in that sentance :-)
perl -e 'print sub { "Hello @{[shift->()]}!\n" }->(sub{"World"})'
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Functional Composition
by ikegami (Patriarch) on Dec 17, 2009 at 21:22 UTC | |
by billh (Pilgrim) on Dec 17, 2009 at 22:02 UTC | |
by ikegami (Patriarch) on Dec 18, 2009 at 01:09 UTC |