Copyright | Nils Anders Danielsson 2006 |
---|---|

License | Nils Anders Danielsson 2006 |

Maintainer | libraries@haskell.org |

Stability | experimental |

Portability | portable |

Safe Haskell | Safe |

- Prelude re-exports
- Other combinators

Simple combinators working solely on and with functions.

# Prelude re-exports

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

takes its (first) two arguments in the reverse order of `flip`

f`f`

.

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

Application operator. This operator is redundant, since ordinary
application `(f x)`

means the same as `(f `

. However, `$`

x)`$`

has
low, right-associative binding precedence, so it sometimes allows
parentheses to be omitted; for example:

f $ g $ h x = f (g (h x))

It is also useful in higher-order situations, such as

,
or `map`

(`$`

0) xs

.
`zipWith`

(`$`

) fs xs

# Other combinators

is the least fixed point of the function `fix`

f`f`

,
i.e. the least defined `x`

such that `f x = x`

.