package core_kernel

  1. Overview
  2. Docs
Industrial strength alternative to OCaml's standard library

Install

Dune Dependency

Authors

Maintainers

Sources

v0.14.2.tar.gz
sha256=66f5353964d35a994ec7fdc88fe60ae5d497ac89a8042786f3e37d9e2202ce4b
md5=ede2f6d22eaa8320f88bac67d41b5cff

doc/core_kernel.flags/Flags/index.html

Module Flags

module type Make_arg = sig ... end
module type S = sig ... end
val create : bit:int -> Core_kernel.Int63.t

create ~bit:n creates a flag with the nth bit set. n must be between 0 and 62.

Typically a flag has one bit set; create is useful in exactly those cases. For flags with multiple bits one can either define the Int63.t directly or create it in terms of simpler flags, using + and -.

module Make (M : Make_arg) : S with type t = Core_kernel.Int63.t

Flags.Make builds a new flags module. If there is an error in the known flags, it behaves as per on_error.

OCaml

Innovation. Community. Security.