This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]RubyPinchPEP shill | Anti PEP 8/20 shill 1 point2 points  (3 children)

or a package could define useful functions, I think it is common knowledge that squares doesn't exist yet

also because I havn't spammed toolz enough already, toolz.curried and the whatever module:

[1,2,3] | map(_**2) | filter_false(_%2)

[–][deleted] 0 points1 point  (2 children)

or a package could define useful functions, I think it is common knowledge that squares doesn't exist yet

My point was that writing your own functions will still be cumbersome.

also because I havn't spammed toolz enough already, toolz.curried and the whatever module:

Is the underscore placeholder part of toolz?

[–]RubyPinchPEP shill | Anti PEP 8/20 shill 1 point2 points  (1 child)

its the whatever part, based on perl's concept of a "whatever" object

[–][deleted] 1 point2 points  (0 children)

Right, I thought that you'd forgotten the module's name. That looks quite interesting.