HPM Education - Haskell

Searchβ¦

Introduction

Types in Haskell

Defining Functions / Working with Functions

List Comprehensions

Higher-order Functions

Cutom Types

Interactive Programming

Functors, Applicatives and Monads

Partial Application

`multiply`

function, we can create a function that always multiplies a number by`2`

:ghci> multiplyBy2 = multiply 1 2

β

ghci> :t multiplyBy2

multiply2 :: Num a => a -> a -- this function now takes only 1 argument

β

ghci> multiplyBy2 5

10

Copy link