Partial operator application #235

Open
opened 2020-02-20 23:21:23 +09:00 by zxq9 · 0 comments
zxq9 commented 2020-02-20 23:21:23 +09:00 (Migrated from gitlab.com)

Created by: radrow

In Haskell and Scala one can partially apply an operator. It is very useful with higher order functions:

function inc_all(l : list(int)) : list(int) = map((_+1), l)
function negate_all(l : list(int)) : list(int) = map((0-_), l)
*Created by: radrow* In Haskell and Scala one can partially apply an operator. It is very useful with higher order functions: ``` function inc_all(l : list(int)) : list(int) = map((_+1), l) function negate_all(l : list(int)) : list(int) = map((0-_), l) ```
Sign in to join this conversation.
No Milestone
No project
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: QPQ-AG/sophia#235
No description provided.