package calculon

  1. Overview
  2. Docs

Module Plugin_markcough.TableSource

Transition Table

Sourcetype token = private string
Sourceval print_token : token CCFormat.printer
Sourcetype t

A prefix tree of uniform length

Sourceval empty : t
Sourceval singleton : token -> t
Sourceval add : token list -> token -> t -> t
Sourceval merge : t -> t -> t
Sourceval merge_list : t list -> t
Sourceval pick_key : Random.State.t -> t -> token

pick_key rand t picks one of the keys of t

Sourceval pick : Random.State.t -> token list -> t -> token

Pick a token following the given path, randomly

  • raises Not_found

    if there is no token to be found

Sourceval print : t CCFormat.printer

Pretty-print the tree on the given formatter

Sourceval write_to : out_channel -> t -> unit

Serialize to channel

Sourceval read_from : in_channel -> t

Deserialize from channel

OCaml

Innovation. Community. Security.