ZVON > References > Haskell reference
| Indexes | Syntax | >> Prelude << | Ratio | Complex | Numeric | Ix | Array | List | Maybe | Char | Monad | IO | Directory | System | Time | Locale | CPUTime | Random

Module: Prelude
Function: curry
Type: ((a,b) -> c) -> a -> b -> c
Description: curry converts an uncurried function to a curried function
Related: uncurry
Bibliography: curried function [ FOLDOC ]

Example 1

Input: curry fst 2 3

Output: 2

Example 2
Program source: 
aaa  = curry (\ (x,y) -> 2*x+y)

Input: aaa 2 3

Output: 7