package stog

  1. Overview
  2. Docs

Module Types.Path_trieSource

Sourcetype symbol = string
Sourcetype path = symbol list
Sourcetype 'a t
Sourceexception Already_present of path
Sourceval empty : 'a t
Sourceval add : ?fail:bool -> path -> 'a -> 'a t -> 'a t
  • raises Already_present

    if the added path already exist in the trie and fail is true (it is false by default.

Sourceval find : path -> 'a t -> 'a list

Find all data associated to the given path or below, or an empty list if such a path does not exist.

Sourceval to_string : (symbol -> string) -> 'a t -> string
OCaml

Innovation. Community. Security.