uncurry -package:basic-prelude -package:utility-ht -package:hxt -package:yjtools

uncurry converts a curried function to a function on pairs.

Examples

>>> uncurry (+) (1,2)
3
>>> uncurry ($) (show, 1)
"1"
>>> map (uncurry max) [(1,2), (3,4), (6,8)]
[2,4,8]
Convert a curried function to a function on strict pairs.
uncurry converts a curried function to a function on pairs.

Examples

>>> uncurry (+) (1,2)
3
>>> uncurry ($) (show, 1)
"1"
>>> map (uncurry max) [(1,2), (3,4), (6,8)]
[2,4,8]
Converts a curried function to a function on a triple.
Uncurries a function expecting three r, g, b parameters.
Convert a curried function on Sigma to an uncurried one. Together, currySigma and uncurrySigma witness an isomorphism. (Refer to the documentation for currySigma for more details.)
uncurry with no lazy pattern matching for more efficient code.