Files
postgrest/docs/Function.md
T

880 B

Functions

Composition

$

($) :: (a -> b) -> a -> b

Example:

.

(.) :: (b -> c) -> (a -> b) -> a -> c

Example:

&

(&) :: a -> (a -> b) -> b

Example:

flip

flip :: (a -> b -> c) -> b -> a -> c

Example:

on

on :: (b -> b -> c) -> (a -> b) -> a -> a -> c

Example:

const

const :: a -> b -> a

Example:

fix

fix :: (a -> a) -> a

Example:

identity

identity :: a -> a

The identity function maps any value to itself.

Example:

Strictness

$!

($!) :: NFData a => (a -> b) -> a -> b

Example:

$!!

($!!) :: NFData a => (a -> b) -> a -> b

Example:

force

force :: NFData a => a -> a

Example: