Comment Comment by Isognoviastoma > curried functions often don't compose nicelySame for imperative languages with "parameter list" style. In python, withdef f(a, b): return c, ddef g(k, l): return m, nyou can't dof(g(1,2))but have to usef(*g(1,2))what is analogical to uncurry, but operate on value rather than function.TBH I can't name a language where such f(g(1,2)) would work. parent Isognoviastoma 7 months ago
Same for imperative languages with "parameter list" style. In python, with
def f(a, b): return c, d
def g(k, l): return m, n
you can't do
f(g(1,2))
but have to use
f(*g(1,2))
what is analogical to uncurry, but operate on value rather than function.
TBH I can't name a language where such f(g(1,2)) would work.