Js_list
val length : 'a t -> int
val isEmpty : 'a t -> bool
val hd : 'a t -> 'a option
val nth : 'a t -> int -> 'a option
val mapRev : ('a -> 'b) Js.Fn.arity1 -> 'a t -> 'b t
val map : ('a -> 'b) Js.Fn.arity1 -> 'a t -> 'b t
val iter : ('a -> unit) Js.Fn.arity1 -> 'a t -> unit
val iteri : (int -> 'a -> unit) Js.Fn.arity2 -> 'a t -> unit
val foldLeft : ('a -> 'b -> 'a) Js.Fn.arity2 -> 'a -> 'b list -> 'a
Application order is left to right, tail recurisve
val foldRight : ('a -> 'b -> 'b) Js.Fn.arity2 -> 'a list -> 'b -> 'b
Application order is right to left tail-recursive.
val filter : ('a -> bool) Js.Fn.arity1 -> 'a t -> 'a t
val filterMap : ('a -> 'b option) Js.Fn.arity1 -> 'a t -> 'b t
val countBy : ('a -> bool) Js.Fn.arity1 -> 'a list -> int
val init : int -> (int -> 'a) Js.Fn.arity1 -> 'a t
val toVector : 'a t -> 'a array
val equal : ('a -> 'a -> bool) Js.Fn.arity2 -> 'a list -> 'a list -> bool