package hardcaml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

A database which holds a collecton of custom combinational operations for use with Cyclesim based simulators.

type t
val sexp_of_t : t -> Ppx_sexp_conv_lib.Sexp.t
val create : Hardcaml__.Import.Unit.t -> t

Create an empty database.

val insert : t -> Combinational_op.t -> Hardcaml__.Import.Unit.t

Insert combinational op into the database.

val find : t -> name:Hardcaml__.Import.String.t -> Combinational_op.t Hardcaml__.Import.Option.t

Find a combinational op in the database, given its name.

val fold : t -> init:'a -> f:('a -> Combinational_op.t -> 'a) -> 'a
val iter : t -> f:(Combinational_op.t -> Hardcaml__.Import.Unit.t) -> Hardcaml__.Import.Unit.t
val concat : t Hardcaml__.Import.List.t -> t

concat ts creates a new database with all elements added from the list of databases ts.

OCaml

Innovation. Community. Security.