package lilis

  1. Overview
  2. Docs
type !'a arit_tree = 'a Calc_type.arit_tree
val tree_to_string : string arit_tree -> string
val string_to_tree : string -> string arit_tree
type arit_env
module Env : sig ... end
exception Unknown_variable of string
val eval_tree : arit_env -> string arit_tree -> float
val compress_tree : arit_env -> string arit_tree -> string arit_tree
val eval : arit_env -> string -> float
val eval_tree_custom : ('a -> float) -> 'a arit_tree -> float
val compress_tree_custom : ('a -> float option) -> 'a arit_tree -> 'a arit_tree
val map_tree : ('a -> 'b) -> 'a arit_tree -> 'b arit_tree
val get_vars : 'a arit_tree -> 'a list
val closure : ?env:arit_env -> string -> (string * 'a) list -> ('a -> float) -> float
OCaml

Innovation. Community. Security.