package lwd

  1. Overview
  2. Docs
type ('a, 'b) reducer
val make : map:('a -> 'b) -> reduce:('b -> 'b -> 'b) -> ('a, 'b) reducer
val update : ('a, 'b) reducer -> 'a seq -> ('a, 'b) reducer
val reduce : ('a, 'b) reducer -> 'b option
type 'b dropped
val update_and_get_dropped : ('a, 'b) reducer -> 'a seq -> 'b dropped * ('a, 'b) reducer
val fold_dropped : [< `All | `Map | `Reduce ] -> ('a -> 'b -> 'b) -> 'a dropped -> 'b -> 'b
OCaml

Innovation. Community. Security.