package lrgrep
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=84a1874d0c063da371e19c84243aac7c40bfcb9aaf204251e0eb0d1f077f2cde
sha512=5a16ff42a196fd741bc64a1bdd45b4dca0098633e73aa665829a44625ec15382891c3643fa210dbe3704336eab095d4024e093e37ae5313810f6754de6119d55
doc/utils/Utils/Misc/index.html
Module Utils.MiscSource
module Positive : sig ... endarray_last arr returns the Some x where x is the last element of the array, or None if the array is empty
array_findi f i arr finds the smallest j >= i such that f j arr.(j) = true, or raises Not_found if there is no such j
group ~compare ~group list Group togethers the elements of list that are equivalent according to compare, using the group function
val merge_group :
equal:('b -> 'b -> bool) ->
group:('b -> 'a list -> 'c) ->
('a * 'b) list ->
'c listMerge consecutive elements (a, b) of list that have the same b, according to equal.
Convenient alias for IndexSet
Convenient alias for IndexMap
A function for consing a value when using Map.update
A function for adding an element to a set when using Map.update
A function for unioning sets when using Map.update
Optimize stdlib's (@) to avoid copying the lhs when the rhs is empty
array_cons a i v cons the value v to the list a.(i), where a is an array of list.
index_fold n a f fold f with accumulator a over all indices in the finite set of cardinal n
Vector get
Vector set
Vector update
tabulate_finset n f tabulates function f over all indices in the finite set of cardinal n
val relation_reverse' :
'a Fix__Indexing.cardinal ->
('a IndexSet.element -> 'a IndexSet.t) ->
('a, 'a IndexSet.t) Fix.Indexing.Vector.tval relation_reverse :
'a Fix__Indexing.cardinal ->
('b, 'a IndexSet.t) Fix.Indexing.Vector.t ->
('a, 'b IndexSet.t) Fix.Indexing.Vector.tval fix_relation :
('n, 'n indexset) Fix.Indexing.vector ->
('n, 'a) Fix.Indexing.vector ->
propagate:('n Fix.Indexing.index -> 'a -> 'n Fix.Indexing.index -> 'a -> 'a) ->
unitval close_relation :
?reverse:('a, 'a IndexSet.t) Fix.Indexing.Vector.t ->
('a, 'a IndexSet.t) Fix.Indexing.Vector.t ->
unitEquality on indices
Comparison of indices
val string_concat_map :
?wrap:(string * string) ->
string ->
('a -> string) ->
'a list ->
stringstring_concat_map ~wrap:(pre, post) sep f xs returns a string made of the concatenation of the elements of xs printed by function f and separated by sep. wrap is optional, but if provided, pre is prepended to the result and post is appended.
Prepend an element to a list reference
Prepend elements to a list reference
Merge to ordered lists, keeping only one copy of elements occurring in both lists. (Duplicate elements in the same list are kept.)
List cons where the element to cons is optional
Turns a index into a cmon document
Turns a set of indices into a cmon document
Print a cmon document to a channel with sensible defaults
val sort_and_merge_indexed :
('a -> 'a -> int) ->
('a * 'b IndexSet.t) list ->
('a * 'b IndexSet.t) listval fixpoint :
?counter:int Stdlib.ref ->
propagate:('a -> unit) ->
'a list Stdlib.ref ->
unitval assert_equal_length :
('a, 'b) Fix.Indexing.Vector.t ->
('c, 'd) Fix.Indexing.Vector.t ->
('a, 'c) Fix.Indexing.eqval rewrite_keywords :
(Stdlib.Lexing.position -> string -> string -> bool) ->
Stdlib.Lexing.position ->
string ->
stringval iterate_vector :
('a, 'a IndexSet.t) Fix.Indexing.Vector.t ->
('a, 'a IndexSet.t lazy_stream) Fix.Indexing.Vector.t