package travesty

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

Extend1 implements Extensions1 for an arity-1 mappable container.

Parameters

module S : S1_container

Signature

Extensions1 includes the container extensions from T_container, as they work with any arity-1 container.

include T_container.Extensions1 with type 'a t := 'a S.t
val max_measure : measure:('a -> int) -> ?default:int -> 'a S.t -> int

max_measure ~measure ~default xs measures each item in xs according to measure, and returns the highest measure reported. If xs is empty, return default if given, and 0 otherwise.

val any : predicates:('a -> bool) S.t -> 'a -> bool

any ~predicates x tests x against predicates until one returns true, or all return false.

val right_pad : padding:'a -> 'a Base.list S.t -> 'a Base.list S.t

right_pad ~padding xs pads every list in xs with padding, ensuring all lists have equal length.

OCaml

Innovation. Community. Security.