package logtk

  1. Overview
  2. Docs
On This Page
  1. Lazy List
Legend:
Library
Module
Module type
Parameter
Class
Class type

Lazy List

type 'a node =
  1. | Nil
  2. | Cons of 'a * 'a t
and 'a t = 'a node Lazy.t
val nil : 'a t
val cons : 'a -> 'a t -> 'a t
val to_list : 'a t -> 'a list

Gather all values into a list

val to_seq : 'a t -> 'a Sequence.t

Iterate on values

val fold : ('a -> 'b -> 'a) -> 'a -> 'b t -> 'a

Fold on values