package merlin-lib
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Merlin's libraries
Install
dune-project
Dependency
Authors
Maintainers
Sources
merlin-5.8.1-505.tbz
sha256=b8fb32bc0fc092af2fd6bdc831cb966057f2e3fd7b99a172b705e96ba8082583
sha512=01ca96f8167d062ba24036e43f650ff958fb157d44867bd52eb7999b7d19bf9fc97cdcd46c04b6979f0e1149d5041047723eed5913b03c4404d7acb116183bee
doc/merlin-lib.ocaml_utils/Ocaml_utils/Stable_matching/index.html
Module Ocaml_utils.Stable_matchingSource
Source
type unstable_matching = {first : left_index * right_index;second : left_index * right_index;current_rank : rank * rank;optimal : rank * rank;
}Source
val stable_matches :
distance:(int -> int -> int) ->
(_, int) matches ->
(unit, unstable_matching) Result.tSource
val strong_stable_matches :
distance:(int -> int -> int) ->
(_, int) matches ->
(unit, unstable_matching) Result.tSource
val matches :
compatible:(left_index -> right_index -> bool) ->
preferences:(right_index -> (left_index * rank) array) ->
size:(int * int) ->
(int, int) matchesmatches ~compatible ~preferences ~size:(ls,rs) computes a matching between a set of ls left items and rs right items favoring the right side. The matches are compatible and weakly stable according to the preferences matrix. The size of the matching is at least 2/3 of the optimal matching size (computing optimal matching with partial preferences and ties is in NP).
Source
val fuzzy_match_names :
compatibility:('k -> 'k -> bool) ->
max_right_items:int ->
cutoff:(string -> int) ->
('v, 'k) Item.t list ->
('v, 'k) Item.t list ->
('v, 'k) item_matchesfuzzy_match_names ~compatibility ~max_right_item ~cutoff left right calls the matches function using the OSA edit distance to compute preferences with a cutoff function. To avoid quadratic complexity on large module size we limit the right side to the first max_right_item items
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>