package melange

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

Provide utilities for list

type 'a t = 'a list
val lengthAux : int -> 'a list -> int
val length : 'a list -> int
val cons : 'a -> 'a list -> 'a list
val isEmpty : 'a list -> bool
val hd : 'a list -> 'a option
val tl : 'a list -> 'a list option
val nth : 'a list -> int -> 'a option
val revAppend : 'a list -> 'a list -> 'a list
val rev : 'a list -> 'a list
val mapRevAux : ('a -> 'b) Js__.Js_internal.Fn.arity1 -> 'b list -> 'a list -> 'b list
val mapRev : ('a -> 'b) Js__.Js_internal.Fn.arity1 -> 'a list -> 'b list
val map : ('a -> 'b) Js__.Js_internal.Fn.arity1 -> 'a list -> 'b list
val iter : ('a -> unit) Js__.Js_internal.Fn.arity1 -> 'a list -> unit
val iteri : (int -> 'a -> unit) Js__.Js_internal.Fn.arity2 -> 'a list -> unit
val foldLeft : ('a -> 'b -> 'a) Js__.Js_internal.Fn.arity2 -> 'a -> 'b list -> 'a
val foldRightMaxStack : int
val tailLoop : ('a -> 'b -> 'b) Js__.Js_internal.Fn.arity2 -> 'b -> 'a list -> 'b
val foldRight : ('a -> 'b -> 'b) Js__.Js_internal.Fn.arity2 -> 'a list -> 'b -> 'b
val flattenAux : 'a list -> 'a list list -> 'a list
val flatten : 'a list list -> 'a list
val filterRevAux : ('a -> bool) Js__.Js_internal.Fn.arity1 -> 'a list -> 'a list -> 'a list
val filter : ('a -> bool) Js__.Js_internal.Fn.arity1 -> 'a list -> 'a list
val filterMapRevAux : ('a -> 'b option) Js__.Js_internal.Fn.arity1 -> 'b list -> 'a list -> 'b list
val filterMap : ('a -> 'b option) Js__.Js_internal.Fn.arity1 -> 'a list -> 'b list
val countByAux : ('a -> bool) Js__.Js_internal.Fn.arity1 -> int -> 'a list -> int
val countBy : ('a -> bool) Js__.Js_internal.Fn.arity1 -> 'a list -> int
val init : int -> (int -> 'a) Js__.Js_internal.Fn.arity1 -> 'a list
val createUnsafe : int -> 'a array
val toVector : 'a list -> 'a array
val equal : ('a -> 'b -> bool) Js__.Js_internal.Fn.arity2 -> 'a list -> 'b list -> bool
OCaml

Innovation. Community. Security.