Partial Application
ghci> multiplyBy2 = multiply 1 2
ghci> :t multiplyBy2
multiply2 :: Num a => a -> a -- this function takes only 1 argument
ghci> multiplyBy2 5
10Last updated
ghci> multiplyBy2 = multiply 1 2
ghci> :t multiplyBy2
multiply2 :: Num a => a -> a -- this function takes only 1 argument
ghci> multiplyBy2 5
10Last updated