package tiny_json

  1. Overview
  2. Docs

Module Tiny_json.LlistSource

Sourcetype 'a llist =
  1. | Nil
  2. | Cons of 'a * 'a llist Lazy.t
    (*

    It is a lazy list, but the first element is already forced

    *)
Sourcetype 'a t = 'a llist Lazy.t
Sourceval hd : 'a llist -> 'a
Sourceval tl : 'a llist -> 'a llist
Sourceval take : int -> 'a llist -> 'a list
Sourceval map : ('a -> 'b) -> 'a llist -> 'b llist
Sourceval repeat : 'a -> 'a llist
Sourceval app : 'a llist -> 'a llist -> 'a llist
Sourceval combine : 'a llist -> 'b llist -> ('a * 'b) llist
Sourceval filter : ('a -> bool) -> 'a llist -> 'a llist
Sourceval concat : 'a llist llist -> 'a llist
Sourceval unfoldr : ('b -> ('a * 'b) option) -> 'b -> 'a llist
Sourceval continually : (unit -> 'a) -> 'a llist
Sourceval from : int -> int llist
Sourceval of_stream : 'a Stream.t -> 'a llist
Sourceval sllist : ?items:int -> string -> ('a -> string) -> 'a llist -> string
Sourceval of_string : string -> char llist
Sourceval of_function : (bytes -> int -> int) -> char llist

of_function f: f buf len is a filler, a function to fill buf with at most len chars. If it reaches the end of the input it returns 0.

Sourceval to_list : 'a llist -> 'a list