Anonymous user
Talk:Partial function application: Difference between revisions
→Proposal for new task description: (non-)idiomatic
(→Proposal for new task description: (non-)idiomatic) |
(→Proposal for new task description: (non-)idiomatic) |
||
Line 209:
main = let u = curry3 f
v = papply2 (papply3 f 7) 9
w = g 7 9 --
in print [map (u 7 9) [1..5], map v [1..5], map w [1..5]]
</lang>
Line 228:
u = curry3(f)
v = partial(f, 7, 9)
w = g(7)(9) # non-idiomatic
print [map(u(7)(9), [1,2,3,4,5]), map(v, [1,2,3,4,5]), map(w, [1,2,3,4,5])]
</lang>
|