package calculon

  1. Overview
  2. Docs
Library for writing IRC bots in OCaml and a collection of plugins

Install

Dune Dependency

Authors

Maintainers

Sources

v0.5.tar.gz
md5=831b8d45ac76bfa1118e7e954bfd4474
sha512=b7e856d88a2c34f2f7bb2c5c8f416ef99e29ccd46a9016e5f7fefc838df6fcb5daffd45170b606562a2ba15e910421884071e6e19fa90b23f412f45d85cc7d5a

doc/calculon.extras/Calculon_extras/Plugin_markcough/Table/index.html

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.