Is a section the result of currying?

前端 未结 3 688
遇见更好的自我
遇见更好的自我 2021-01-26 00:24

In Programming in Haskell by Hutton

In general, if # is an operator, then expressions of the form (#),

3条回答
  •  广开言路
    2021-01-26 01:11

    A section is just special syntax for applying an infix operator to a single argument. (# y) is the more useful of the two, as (x #) is equivalent to (#) x (which is just applying the infix operator as a function to a single argument in the usual fashion).

提交回复
热议问题