package podge

  1. Overview
  2. Docs

Module Podge.ListSource

Sourceval all : f:('a -> bool) -> 'a list -> bool

Evaluate f on each item of the given list and check if all evaluated to true

Sourceval any : f:('a -> bool) -> 'a list -> bool

Evaluate f on each item of the given list and check if any evaluated to false

Sourceval unique : 'a list -> 'a list
Sourceval group_by : ('a * 'b) list -> ('a * 'b list) list
Sourceval take : int -> 'a list -> 'a list
Sourceval drop : int -> 'a list -> 'a list
Sourceval equal_parts : segs:int -> 'a list -> 'a list list
OCaml

Innovation. Community. Security.