將二進位制函式應用於元組(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