package containers

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
Generator with errors
type 'a t = unit -> 'a parse_result

A generator-like structure, but with the possibility of errors. When called, it can yield a new element, signal the end of stream, or signal an error.

val to_list : 'a t -> 'a list or_error
val head : 'a t -> 'a or_error
val head_exn : 'a t -> 'a
val take : int -> 'a t -> 'a t
OCaml

Innovation. Community. Security.