You are currently looking at the v8.2 - v9.0 docs (Reason v3.6 syntax edition). You can find the latest API docs here.
List
Provide utilities for list.
t
REStype t<'a> = list<'a>
length
RESlet length: t<'a> => int
cons
RESlet cons: ('a, t<'a>) => t<'a>
isEmpty
RESlet isEmpty: t<'a> => bool
hd
RESlet hd: t<'a> => option<'a>
tl
RESlet tl: t<'a> => option<t<'a>>
nth
RESlet nth: (t<'a>, int) => option<'a>
revAppend
RESlet revAppend: (t<'a>, t<'a>) => t<'a>
rev
RESlet rev: t<'a> => t<'a>
mapRev
RESlet mapRev: ((. 'a) => 'b, t<'a>) => t<'b>
map
RESlet map: ((. 'a) => 'b, t<'a>) => t<'b>
iter
RESlet iter: ((. 'a) => unit, t<'a>) => unit
iteri
RESlet iteri: ((. int, 'a) => unit, t<'a>) => unit
foldLeft
RESlet foldLeft: ((. 'a, 'b) => 'a, 'a, list<'b>) => 'a
Application order is left to right, tail-recurisve.
foldRight
RESlet foldRight: ((. 'a, 'b) => 'b, list<'a>, 'b) => 'b
Application order is right to left, tail-recursive.
flatten
RESlet flatten: t<t<'a>> => t<'a>
filter
RESlet filter: ((. 'a) => bool, t<'a>) => t<'a>
filterMap
RESlet filterMap: ((. 'a) => option<'b>, t<'a>) => t<'b>
countBy
RESlet countBy: ((. 'a) => bool, list<'a>) => int
init
RESlet init: (int, (. int) => 'a) => t<'a>
toVector
RESlet toVector: t<'a> => Js_vector.t<'a>
equal
RESlet equal: ((. 'a, 'a) => bool, list<'a>, list<'a>) => bool