package vec

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Vec.InfixSource

Contains infix versions of some vector operations, as well as binding operators and extended indexing operators.

Sourceval (.![]) : ('a, [> `R ]) t -> int -> 'a

Infix version of get.

Sourceval (.?[]) : ('a, [> `R ]) t -> int -> 'a option

Infix version of try_get.

Sourceval (.![]<-) : ('a, [> `W ]) t -> int -> 'a -> unit

Infix version of set.

Sourceval (.?[]<-) : ('a, [> `W ]) t -> int -> 'a -> bool

Infix version of try_set.

Sourceval (let+) : ('a, [> `R ]) t -> ('a -> 'b) -> ('b, [ `R | `W ]) t

Equivalent to map, but with the arguments flipped.

Sourceval (and+) : ('a, [> `R ]) t -> ('b, [> `R ]) t -> ('a * 'b, [ `R | `W ]) t

Equivalent to cartesian_product.

Sourceval (let*) : ('a, [> `R ]) t -> ('a -> ('b, [> `R ]) t) -> ('b, [ `R | `W ]) t

Equivalent to flat_map, but with the arguments flipped.

Sourceval (and*) : ('a, [> `R ]) t -> ('b, [> `R ]) t -> ('a * 'b, [ `R | `W ]) t

Equivalent to cartesian_product.

Sourceval (@) : ('a, [> `R ]) t -> ('a, [> `R ]) t -> ('a, [ `R | `W ]) t

Infix version of append.

Sourceval (=|<) : ('a -> 'b) -> ('a, [> `R ]) t -> ('b, [ `R | `W ]) t

Infix version of map.

Sourceval (>|=) : ('a, [> `R ]) t -> ('a -> 'b) -> ('b, [ `R | `W ]) t

Infix version of map, with the arguments flipped.

Sourceval (<$>) : ('a -> 'b) -> ('a, [> `R ]) t -> ('b, [ `R | `W ]) t

Infix version of map.

Sourceval (<*>) : ('a -> 'b, [> `R ]) t -> ('a, [> `R ]) t -> ('b, [ `R | `W ]) t

Infix version of apply.

Sourceval (=<<) : ('a -> ('b, [> `R ]) t) -> ('a, [> `R ]) t -> ('b, [ `R | `W ]) t

Infix version of flat_map.

Sourceval (>>=) : ('a, [> `R ]) t -> ('a -> ('b, [> `R ]) t) -> ('b, [ `R | `W ]) t

Infix version of flat_map, with the arguments flipped.

Sourceval (--) : int -> int -> (int, [ `R | `W ]) t

Infix version of range.