package melange

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

Belt.List

Utilities for List data type

type 'a t = 'a list
module A : sig ... end

Belt.Array Utililites for Array functions

val mutableCell : 'a -> 'a t -> 'a t
val unsafeMutateTail : 'a t -> 'a t -> unit
val head : 'a list -> 'a option
val headExn : 'a list -> 'a
val tail : 'a list -> 'a list option
val tailExn : 'a list -> 'a list
val add : 'a list -> 'a -> 'a list
val nthAux : 'a list -> int -> 'a option
val nthAuxAssert : 'a list -> int -> 'a
val get : 'a list -> int -> 'a option
val getExn : 'a list -> int -> 'a
val partitionAux : ('a -> bool) Js.Fn.arity1 -> 'a list -> 'a t -> 'a t -> unit
val splitAux : ('a * 'b) list -> 'a t -> 'b t -> unit
val copyAuxCont : 'a list -> 'a t -> 'a t
val copyAuxWitFilter : ('a -> bool) Js.Fn.arity1 -> 'a list -> 'a t -> unit
val copyAuxWithFilterIndex : ('a -> int -> bool) Js.Fn.arity2 -> 'a list -> 'a t -> int -> unit
val copyAuxWitFilterMap : ('a -> 'b option) Js.Fn.arity1 -> 'a list -> 'b t -> unit
val removeAssocAuxWithMap : ('a * 'b) list -> 'c -> ('a * 'b) t -> ('a -> 'c -> bool) Js.Fn.arity2 -> bool
val setAssocAuxWithMap : ('a * 'b) list -> 'a -> 'b -> ('a * 'b) t -> ('a -> 'a -> bool) Js.Fn.arity2 -> bool
val copyAuxWithMap : 'a list -> 'b t -> ('a -> 'b) Js.Fn.arity1 -> unit
val zipAux : 'a list -> 'b list -> ('a * 'b) t -> unit
val copyAuxWithMap2 : ('a -> 'b -> 'c) Js.Fn.arity2 -> 'a list -> 'b list -> 'c t -> unit
val copyAuxWithMapI : (int -> 'a -> 'b) Js.Fn.arity2 -> int -> 'a list -> 'b t -> unit
val takeAux : int -> 'a list -> 'a t -> bool
val splitAtAux : int -> 'a list -> 'a t -> 'a list option
val take : 'a list -> int -> 'a t option
val dropAux : 'a list -> int -> 'a list option
val drop : 'a list -> int -> 'a list option
val splitAt : 'a list -> int -> ('a t * 'a list) option
val concat : 'a list -> 'a t -> 'a t
val mapU : 'a list -> ('a -> 'b) Js.Fn.arity1 -> 'b t
val map : 'a list -> ('a -> 'b) -> 'b t
val zipByU : 'a list -> 'b list -> ('a -> 'b -> 'c) Js.Fn.arity2 -> 'c t
val zipBy : 'a list -> 'b list -> ('a -> 'b -> 'c) -> 'c t
val mapWithIndexU : 'a list -> (int -> 'a -> 'b) Js.Fn.arity2 -> 'b t
val mapWithIndex : 'a list -> (int -> 'a -> 'b) -> 'b t
val makeByU : int -> (int -> 'a) Js.Fn.arity1 -> 'a t
val makeBy : int -> (int -> 'a) -> 'a t
val make : int -> 'a -> 'a list
val lengthAux : 'a list -> int -> int
val length : 'a list -> int
val size : 'a list -> int
val fillAux : 'a A.t -> int -> 'a list -> unit
val fromArrayAux : 'a A.t -> int -> 'a list -> 'a list
val fromArray : 'a A.t -> 'a list
val toArray : 'a t -> 'a A.t
val shuffle : 'a t -> 'a list
val reverseConcat : 'a list -> 'a list -> 'a list
val reverse : 'a list -> 'a list
val flattenAux : 'a t -> 'a list list -> unit
val flatten : 'a list list -> 'a t
val concatMany : 'a t A.t -> 'a t
val mapRevAux : ('a -> 'b) Js.Fn.arity1 -> 'b list -> 'a list -> 'b list
val mapReverseU : 'a list -> ('a -> 'b) Js.Fn.arity1 -> 'b list
val mapReverse : 'a list -> ('a -> 'b) -> 'b list
val forEachU : 'a list -> ('a -> 'b) Js.Fn.arity1 -> unit
val forEach : 'a list -> ('a -> 'b) -> unit
val iteri : 'a list -> int -> (int -> 'a -> 'b) Js.Fn.arity2 -> unit
val forEachWithIndexU : 'a list -> (int -> 'a -> 'b) Js.Fn.arity2 -> unit
val forEachWithIndex : 'a list -> (int -> 'a -> 'b) -> unit
val reduceU : 'a list -> 'b -> ('b -> 'a -> 'b) Js.Fn.arity2 -> 'b
val reduce : 'a list -> 'b -> ('b -> 'a -> 'b) -> 'b
val reduceReverseUnsafeU : 'a list -> 'b -> ('b -> 'a -> 'b) Js.Fn.arity2 -> 'b
val reduceReverseU : 'a list -> 'b -> ('b -> 'a -> 'b) Js.Fn.arity2 -> 'b
val reduceReverse : 'a list -> 'b -> ('b -> 'a -> 'b) -> 'b
val reduceWithIndexAuxU : 'a list -> 'b -> ('b -> 'a -> int -> 'b) Js.Fn.arity3 -> int -> 'b
val reduceWithIndexU : 'a list -> 'b -> ('b -> 'a -> int -> 'b) Js.Fn.arity3 -> 'b
val reduceWithIndex : 'a list -> 'b -> ('b -> 'a -> int -> 'b) -> 'b
val mapRevAux2 : 'a list -> 'b list -> 'c list -> ('a -> 'b -> 'c) Js.Fn.arity2 -> 'c list
val mapReverse2U : 'a list -> 'b list -> ('a -> 'b -> 'c) Js.Fn.arity2 -> 'c list
val mapReverse2 : 'a list -> 'b list -> ('a -> 'b -> 'c) -> 'c list
val forEach2U : 'a list -> 'b list -> ('a -> 'b -> 'c) Js.Fn.arity2 -> unit
val forEach2 : 'a list -> 'b list -> ('a -> 'b -> 'c) -> unit
val reduce2U : 'a list -> 'b list -> 'c -> ('c -> 'a -> 'b -> 'c) Js.Fn.arity3 -> 'c
val reduce2 : 'a list -> 'b list -> 'c -> ('c -> 'a -> 'b -> 'c) -> 'c
val reduceReverse2UnsafeU : 'a list -> 'b list -> 'c -> ('c -> 'a -> 'b -> 'c) Js.Fn.arity3 -> 'c
val reduceReverse2U : 'a list -> 'b list -> 'c -> ('c -> 'a -> 'b -> 'c) Js.Fn.arity3 -> 'c
val reduceReverse2 : 'a list -> 'b list -> 'c -> ('c -> 'a -> 'b -> 'c) -> 'c
val everyU : 'a list -> ('a -> bool) Js.Fn.arity1 -> bool
val every : 'a list -> ('a -> bool) -> bool
val someU : 'a list -> ('a -> bool) Js.Fn.arity1 -> bool
val some : 'a list -> ('a -> bool) -> bool
val every2U : 'a list -> 'b list -> ('a -> 'b -> bool) Js.Fn.arity2 -> bool
val every2 : 'a list -> 'b list -> ('a -> 'b -> bool) -> bool
val cmpByLength : 'a list -> 'b list -> int
val cmpU : 'a list -> 'b list -> ('a -> 'b -> int) Js.Fn.arity2 -> int
val cmp : 'a list -> 'b list -> ('a -> 'b -> int) -> int
val eqU : 'a list -> 'b list -> ('a -> 'b -> bool) Js.Fn.arity2 -> bool
val eq : 'a list -> 'b list -> ('a -> 'b -> bool) -> bool
val some2U : 'a list -> 'b list -> ('a -> 'b -> bool) Js.Fn.arity2 -> bool
val some2 : 'a list -> 'b list -> ('a -> 'b -> bool) -> bool
val hasU : 'a list -> 'b -> ('a -> 'b -> bool) Js.Fn.arity2 -> bool
val has : 'a list -> 'b -> ('a -> 'b -> bool) -> bool
val getAssocU : ('a * 'b) list -> 'c -> ('a -> 'c -> bool) Js.Fn.arity2 -> 'b option
val getAssoc : ('a * 'b) list -> 'c -> ('a -> 'c -> bool) -> 'b option
val hasAssocU : ('a * 'b) list -> 'c -> ('a -> 'c -> bool) Js.Fn.arity2 -> bool
val hasAssoc : ('a * 'b) list -> 'c -> ('a -> 'c -> bool) -> bool
val removeAssocU : ('a * 'b) t -> 'c -> ('a -> 'c -> bool) Js.Fn.arity2 -> ('a * 'b) t
val removeAssoc : ('a * 'b) t -> 'c -> ('a -> 'c -> bool) -> ('a * 'b) t
val setAssocU : ('a * 'b) list -> 'a -> 'b -> ('a -> 'a -> bool) Js.Fn.arity2 -> ('a * 'b) t
val setAssoc : ('a * 'b) list -> 'a -> 'b -> ('a -> 'a -> bool) -> ('a * 'b) t
val sortU : 'a t -> ('a -> 'a -> int) Js.Fn.arity2 -> 'a list
val sort : 'a t -> ('a -> 'a -> int) -> 'a list
val getByU : 'a list -> ('a -> bool) Js.Fn.arity1 -> 'a option
val getBy : 'a list -> ('a -> bool) -> 'a option
val keepU : 'a list -> ('a -> bool) Js.Fn.arity1 -> 'a t
val keep : 'a list -> ('a -> bool) -> 'a t
val keepWithIndexU : 'a list -> ('a -> int -> bool) Js.Fn.arity2 -> 'a t
val keepWithIndex : 'a list -> ('a -> int -> bool) -> 'a t
val keepMapU : 'a list -> ('a -> 'b option) Js.Fn.arity1 -> 'b t
val keepMap : 'a list -> ('a -> 'b option) -> 'b t
val partitionU : 'a list -> ('a -> bool) Js.Fn.arity1 -> 'a t * 'a t
val partition : 'a list -> ('a -> bool) -> 'a t * 'a t
val unzip : ('a * 'b) list -> 'a t * 'b t
val zip : 'a list -> 'b list -> ('a * 'b) t
OCaml

Innovation. Community. Security.