package incr_map
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Helpers for incremental operations on map like data structures
Install
dune-project
Dependency
Authors
Maintainers
Sources
v0.17.0.tar.gz
sha256=91acc784e4760af8544c4504bee1a9f6d7385eb0620f8e56392cd193a250b7d2
doc/incr_map.collate/Incr_map_collate/Collate/index.html
Module Incr_map_collate.CollateSource
Source
type ('k, 'filter, 'order) t = {filter : 'filter;(*User-defined type, usually algebraic data type, describing how the table can be filtered. You'll need to provide
*)equalandto_predicateof type'filter -> ('k -> 'v -> bool)forcollate.order : 'order;(*User-defined type, usually algebraic data type, describing how the table can be sorted. You'll need to provide
*)equalandto_compareof type functionally equivalent to'order -> ('v -> 'v -> int)forcollate.key_range : 'k Which_range.t;(*Select only rows between these keys (in the configured ordering)
*)rank_range : int Which_range.t;(*After selecting rows according to
key_range, select rows between these positions.For example, if your (sorted & filtered) data is
*)(A, 1); (B, 2); (C, 3), then both forkey_range = All_rows; rank_range = From 1andkey_range = From B; rank_range = All_rowsthe result would be(B, 2); (C, 3)
}Source
val sexp_of_t :
('k -> Sexplib0.Sexp.t) ->
('filter -> Sexplib0.Sexp.t) ->
('order -> Sexplib0.Sexp.t) ->
('k, 'filter, 'order) t ->
Sexplib0.Sexp.t sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>