Skip to content

Comment on Hindley-Milner in Clojureparent

Comments

Partial application and curried functions are subtly different.

Consider a "+" operator that does currying:

    ((+ 5) 10)
If the plus operator is not currying, that's either an arity or type error. You're either not supplying enough arguments to +, or you're trying to do this:
    (5 10)
Partial application can be explicit, without currying:
    ((partial + 5) 10)
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.