package cfstream

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

A signature for data structures that may be converted to and from a Stream.t.

If you create a new data structure, you should make it compatible with Streamable if possible.

type 'a t

Type of the datastructure.

val to_stream : 'a t -> 'a Stream.t

Return a stream containing all elements of given data structure. Exact semantics depend on implementation. For example, elements in stream may or may not be ordered.

val of_stream : 'a Stream.t -> 'a t

Return a data structure containing all elements in given stream, fully consuming the stream. Exact semantics depend on implementation. For example, duplicate elements in input may be ignored if the data structure is a set.

OCaml

Innovation. Community. Security.