package bonsai
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
A library for building dynamic webapps, using Js_of_ocaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
v0.15.1.tar.gz
sha256=0c4a714146073f421f1a6179561f836b45d8dc012c743207d3481ea63bef74bf
doc/bonsai.extra/Bonsai_extra/Id_gen/index.html
Module Bonsai_extra.Id_genSource
Id_gen builds a component which generates unique identifiers by starting at 0 and incrementing by one every time that the effect is called.
The functor is parameteraized on the size of integer (int vs int63 vs int64), and it's also a generative functor, so invoking the functor multiple times times will mint new types.
I explicitly disassociate the input T from the output T because otherwise the benefits of the generative functor would be gone.
Parameters
Signature
include Core.Int_intf.S
val t_sexp_grammar : t Sexplib0.Sexp_grammar.tval of_float : float -> tval to_float : t -> floatval of_int_exn : int -> tval to_int_exn : t -> intval is_positive : t -> boolval is_non_negative : t -> boolval is_negative : t -> boolval is_non_positive : t -> boolval sign : t -> Base__Comparable_intf.Sign.tval invariant : t Base__Invariant_intf.invval to_string_hum : ?delimiter:char -> t -> stringval zero : tval one : tval minus_one : tval popcount : t -> intval decr : t Base__.Import.ref -> unitval incr : t Base__.Import.ref -> unitval of_int32_exn : int32 -> tval to_int32_exn : t -> int32val of_int64_exn : int64 -> tval to_int64 : t -> int64val of_nativeint_exn : nativeint -> tval to_nativeint_exn : t -> nativeintval of_float_unchecked : float -> tval max_value : tval min_value : tval ceil_log2 : t -> intval floor_log2 : t -> intval is_pow2 : t -> boolval clz : t -> intval ctz : t -> intmodule O : sig ... endval typerep_of_t : t Typerep_lib.Std_internal.Typerep.tval typename_of_t : t Typerep_lib.Typename.tmodule Hex : sig ... endval bin_size_t : t Bin_prot.Size.sizerval bin_write_t : t Bin_prot.Write.writerval bin_read_t : t Bin_prot.Read.readerval __bin_read_t__ : (int -> t) Bin_prot.Read.readerval bin_shape_t : Bin_prot.Shape.tval bin_writer_t : t Bin_prot.Type_class.writerval bin_reader_t : t Bin_prot.Type_class.readerval bin_t : t Bin_prot.Type_class.tval t_of_sexp : Sexplib0.Sexp.t -> tval sexp_of_t : t -> Sexplib0.Sexp.tval of_string : string -> tval to_string : t -> stringval pp : Base__.Formatter.t -> t -> unitmodule Replace_polymorphic_compare : sig ... endval comparator : (t, comparator_witness) Core__Comparator.comparatormodule Map : sig ... endmodule Set : sig ... endval hash_fold_t : t Base__Ppx_hash_lib.hash_foldval hash : t -> Base__Ppx_hash_lib.Std.Hash.hash_valueval hashable : t Core__.Hashtbl.Hashable.tmodule Table : sig ... endmodule Hash_set : sig ... endmodule Hash_queue : sig ... endval validate_positive : t Validate.checkval validate_non_negative : t Validate.checkval validate_negative : t Validate.checkval validate_non_positive : t Validate.checkval quickcheck_generator : t Base_quickcheck.Generator.tval quickcheck_observer : t Base_quickcheck.Observer.tval quickcheck_shrinker : t Base_quickcheck.Shrinker.tval gen_incl : t -> t -> t Base_quickcheck.Generator.tval gen_uniform_incl : t -> t -> t Base_quickcheck.Generator.tval gen_log_uniform_incl : t -> t -> t Base_quickcheck.Generator.tval gen_log_incl : t -> t -> t Base_quickcheck.Generator.t sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page