将二进制函数应用于元组(uncurrying)

使用 uncurry 函数(来自 PreludeData.Tuple)将二进制函数转换为元组上的函数。

uncurry (+) (1, 2) -- computes 3

uncurry map (negate, [1, 2, 3]) -- computes [-1, -2, -3]

uncurry uncurry ((+), (1, 2)) -- computes 3

map (uncurry (+)) [(1, 2), (3, 4), (5, 6)] -- computes [3, 7, 11]

uncurry (curry f) -- computes the same as f