Talk:Partial function application: Difference between revisions

(→‎Proposal for new task description: suggested task description)
(→‎Current task description is a bit odd: suggested task description)
Line 305:
: My suggested task description would read:
:* Define the linear function ''f''(''a'', ''b'', ''x'') ↦ ''ax'' + ''b''. This function should preferably by defined in an idiomatic form, but if this is not possible other solutions are acceptable.
:* Define the function ''[[map]]''(''f'', ''xs'') which applies its first argument, a function expecting a single argument, to each element of the sequence ''xs''. Preferably use the implementation formfrom the standard library, if available.
:* Perform the following operations: partially apply ''a'' = 7 and ''b'' = 9 to ''f'', and apply this partially applied function to each element of a sequence using ''map''.
: —''[[User:Ruud Koot|Ruud]]'' 12:46, 20 April 2011 (UTC)
Anonymous user