Module CCList.Infix
val (--) : int -> int -> int t
i -- j
is the infix alias forrange
. Bounds included.
val (--^) : int -> int -> int t
i --^ j
is the infix alias forrange'
. Second boundj
excluded.- since
- 0.17
Let operators on OCaml >= 4.08.0, nothing otherwise
- since
- 2.8
include CCShimsMkLetList_.S
val and& : 'a list -> 'b list -> ('a * 'b) list
(and&)
iscombine_shortest
. It allows to perform a synchronized product between two lists, stopping gently at the shortest. Usable both withlet+
andlet*
.# let f xs ys zs = let+ x = xs and& y = ys and& z = zs in x + y + z;; val f : int list -> int list -> int list -> int list = <fun> # f [1;2] [5;6;7] [10;10];; - : int list = [16; 18]
- since
- 3.1