package jsont
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Declarative JSON data manipulation for OCaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
jsont-0.2.0.tbz
sha512=6206f73a66cb170b560a72e58f70b9fb2c20397b9ab819dceba49b6602b9b79e47ba307e6910e61ca4694555c66fdcd7a17490afb99548e8f43845a5a88913e7
doc/jsont/Jsont/Object/Mems/index.html
Module Object.MemsSource
Uniform members.
Maps
Source
type ('mems, 'a) enc = {enc : 'acc. (Meta.t -> string -> 'a -> 'acc -> 'acc) -> 'mems -> 'acc -> 'acc;
}The type for specifying unknown members encoding function. A function to fold over unknown members of uniform type 'a stored in a value of type 'mems.
The type for mapping members of uniform type 'a to values of type 'mems using a builder of type 'builder.
Source
val map :
?kind:string ->
?doc:string ->
?dec_empty:(unit -> 'builder) ->
?dec_add:(Meta.t -> string -> 'a -> 'builder -> 'builder) ->
?dec_finish:(Meta.t -> 'builder -> 'mems) ->
?enc:('mems, 'a) enc ->
'a jsont ->
('mems, 'a, 'builder) mapmap type' maps unknown members of uniform type 'a to values of type 'mems built with type 'builder.
kindnames the entities represented by the map anddocdocuments them. Both default to"".dec_emptyis used to create a builder for the members. Can be omitted if the map is only used for encoding, the default unconditionally errors.dec_add meta name v bis used to add a member namednamewith metametawith member valuevto builderb. Can be omitted if the map is only used for encoding, the default unconditionally errors.dec_finish meta bconverts the builder to the final members value.metais the metadata of the object in which they were found. Can be omitted if the map is only used for encoding, the default unconditionally errors.enc f mems accfolds over the elements ofmemsstarting withacc. This function is used to encode the members. Can be omitted if the map is only used for decoding, the default unconditionally errors.
See keep_unknown.
Source
val string_map :
?kind:string ->
?doc:string ->
'a jsont ->
('a Map.Make(String).t, 'a, 'a Map.Make(String).t) mapstring_map t collects unknown member by name and types their values with t. See keep_unknown and as_string_map.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page