package binbin

  1. Overview
  2. Docs
Convenient and human-readable bitmap manipulation

Install

Dune Dependency

Authors

Maintainers

Sources

0.1b.tar.gz
sha256=16f27b052ffa146cffc8bb4549993780d8b984c3295fbf8f04440c7bc0472e63
md5=c837ac8fbde71cc2a2831777ecb8d5c1

doc/binbin/Binbin/index.html

Module BinbinSource

Sourcetype t
Sourceval init : int -> t
Sourceval size : t -> int
Sourceval take : int -> t -> t
Sourceval make : int -> t -> t
Sourceval map : (t -> t) -> t -> t
Sourceval mapi : (int -> t -> t) -> t -> t
Sourceval dmap : (t -> t -> t) -> t -> t -> t
Sourceval foldr : (t -> 'a -> 'a) -> t -> 'a -> 'a
Sourceval foldl : ('a -> t -> 'a) -> 'a -> t -> 'a
Sourceval flip : t -> t
Sourceval flip_bit_at : int -> t -> t
Sourceval msbit : t -> t
Sourceval lsbit : t -> t
Sourceval pad_left : int -> t -> t
Sourceval pad_right : int -> t -> t
Sourceval concat : t -> t -> t
Sourceval reverse : t -> t
Sourceval normalize : t -> t -> t * t
Sourceval irreducible : t -> t
Sourceval b_xor : t -> t -> t
Sourceval b_or : t -> t -> t
Sourceval b_and : t -> t -> t
Sourceval b_not : t -> t
Sourceval find_first_one : t -> t
Sourceval count_leading_zeros : t -> t
Sourceval count_trailing_zeros : t -> t
Sourceval cardinality : t -> t
Sourceval hamming_distance : t -> t -> t
Sourceval of_int : int -> t
Sourceval of_char : char -> t
Sourceval of_string : string -> t
Sourceval to_int : t -> int
Sourceval to_char : t -> char
Sourceval to_ascii : t -> string
Sourceval unsafe_s : t -> string
Sourceval unsafe_b : string -> t

* TODO: * think about float support * functorize

OCaml

Innovation. Community. Security.