package containers

  1. Overview
  2. Docs
A modular, clean and powerful extension of the OCaml standard library

Install

dune-project
 Dependency

Authors

Maintainers

Sources

containers-3.17.tbz
sha256=0f70824867269c02bf01ae12206aa47a6f669d69f1954c19e68ece9f444f1cba
sha512=11de2d7b7173659e6b83c487ac116a93d4b780b86da07386e7604f8fd45f6841e93cba59dba59ed7dbf6e1bc26561202ae1d2e7238a12f588dfd557d4f2da589

doc/containers/CCFun/Infix/index.html

Module CCFun.InfixSource

Sourceval (%>) : ('a -> 'b) -> ('b -> 'c) -> 'a -> 'c

(f %> g) x or (%>) f g x is g (f x). Alias to compose.

Sourceval (%) : ('b -> 'c) -> ('a -> 'b) -> 'a -> 'c

(f % g) x or (%) f g x is f (g x). Mathematical composition.

Sourceval (let@) : ('a -> 'b) -> 'a -> 'b

let@ x = foo in bar is the equivalent of foo @@ fun x -> bar. It can be very useful for resource management, alongside with protect.

  • since 3.11
Sourceval (||>) : ('a * 'b) -> ('a -> 'b -> 'c) -> 'c

x ||> f is f (fst x) (snd x)

  • since 3.13.1
Sourceval (|||>) : ('a * 'b * 'c) -> ('a -> 'b -> 'c -> 'd) -> 'd

like ||> but for tuples of size 3

  • since 3.13.1