Prelude

v11.3.15 • Henk Core Definitions

Core types and functions automatically imported in every module.

Types

No types defined in this module.

Foreigns

No foreign functions defined in this module.

Functions

id :: A -> A

The identity function.

Implementation
id x = x

const :: A -> B -> A

The constant function.

Implementation
const x y = x

flip :: (A -> B -> C) -> B -> A -> C

Flips the arguments of a binary function.

Implementation
flip f x y = f y x

compose :: (B -> C) -> (A -> B) -> A -> C

Function composition: (f ∘ g) x = f (g x).

Implementation
compose f g x = f (g x)