package ppx_nanocaml

  1. Overview
  2. Docs
val fold : 'a list -> 'b -> ('a -> 'b -> 'b) -> 'b

fold (x::xs) z f = f x (fold xs z f) *

val map : 'a list -> ('a -> 'b) -> 'b list

map [x; y; ...] f = f x; f y; ... *

OCaml

Innovation. Community. Security.