package calculon

  1. Overview
  2. Docs

Module Calculon.Plugin_factoidsSource

Sourcetype key = private string
Sourcetype value =
  1. | StrList of string list
  2. | Int of int
Sourcetype factoid = {
  1. key : key;
  2. value : value;
}
Sourceval key_of_string : string -> key option
Sourceval factoids_of_json : Yojson.Safe.json -> (t, string) CCResult.t
Sourceval json_of_factoids : t -> Yojson.Safe.json
Sourcetype op =
  1. | Get of key
  2. | Set of factoid
  3. | Set_force of factoid
  4. | Append of factoid
  5. | Remove of factoid
  6. | Incr of key
  7. | Decr of key
Sourceval parse_op : prefix:string -> string -> (op * string option) option

op + hilight

Sourceval string_of_value : value -> string
Sourceval string_of_op : op -> string
Sourceval empty : t
Sourceval mem : key -> t -> bool
Sourceval get : key -> t -> value
Sourceval set : factoid -> t -> t
Sourceval append : factoid -> t -> t
Sourceval remove : factoid -> t -> t
Sourceval incr : key -> t -> int option * t
Sourceval decr : key -> t -> int option * t
Sourceval plugin : Plugin.t
OCaml

Innovation. Community. Security.