Anonymous user
Talk:Partial function application: Difference between revisions
→Proposal for new task description
Line 176:
== Proposal for new task description ==
I would propose to extend the task description here include both currying and partial application
* Define the linear function ''f'' : (''a'', ''b'', ''x'') ↦ ''ax'' + ''b'' in uncurried form.
* Define the linear function ''g'' : (''a'', ''b'', ''x'') ↦ ''ax'' + ''b'' in curried form.
* Perform the following operations:
*# Curry ''f'', apply ''a'' = 7, ''b'' = 9, apply to a sequence of ''x'''s.
*# Partially apply ''a'' = 7 and ''b'' = 9 to ''f'', and apply to a sequence of ''x'''s.
*# Apply ''a'' = 7 and ''b'' = 9 to ''f'', and apply to a sequence of ''x'''s.
Here are samples in Haskell and Python:
<lang haskell>
|