package bap-std

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

the type of key

type token

type of token must implement bin_prot, be comparable and sexpable

val bin_shape_token : Core_kernel.Bin_prot.Shape.t
val __bin_read_token__ : (int -> token) Core_kernel.Bin_prot.Read.reader
val compare_token : token -> token -> int
val sexp_of_token : token -> Sexplib0.Sexp.t
val token_of_sexp : Sexplib0.Sexp.t -> token
val length : t -> int

length key return the amount of tokens in a key

val nth_token : t -> int -> token

nth_token key n the n'th token of key. Should be O(1)

val token_hash : token -> int

hash_token tok efficient hash function for the token type. If nothing efficient came to mind, just use Hashtbl.hash.

OCaml

Innovation. Community. Security.