DISQUS

Phil Dawes' Stuff: Currying

  • Ian Rogers · 3 years ago
    A number of languages support currying (or "closures" as I learnt it) but you're right in that it's deep in the language rather than an extra like others.

    You can create functions that way too. E.g.

    let alphasort = maplist alpha_gt

    would leave alphasort with type

    list -> list