Loko.Builder
Imperative builder.
type ('y, 'ys) t =
| T : {
empty : unit -> 'builder;
add : 'builder -> 'y -> unit;
finish : 'builder -> 'ys;
} -> ('y, 'ys) t
A builder accumulates elements of type 'y one-by-one to produce a collection of type 'ys.
'y
'ys