package anthill

  1. Overview
  2. Docs
exception Removing_nonexistent
type bag = {
  1. letters : int array;
  2. mutable n_letters : int;
  3. mutable blanks : int;
  4. mutable star : bool;
}
val empty : unit -> bag
val inc : bag -> int -> unit
val dec : bag -> int -> unit
val count : bag -> int -> int
val add : bag -> Types.tile -> unit
val has_letter : bag -> Types.tile -> bool
val remove : bag -> Types.tile -> bool
val play : bag -> int -> Types.tile option
val of_rack : Types.tile list -> bag
val is_empty : bag -> bool
val has_wildcards : bag -> bool
OCaml

Innovation. Community. Security.