lice-comb expressions-info map helper functionality. Note: this namespace is not part of the public API of lice-comb and may change without notice.
lice-comb expressions-info map helper functionality. Note: this namespace is not part of the public API of lice-comb and may change without notice.
(calculate-confidence-for-expression expression-infos)Calculate the confidence for an expression, as the lowest confidence in the expression-infos for the identifiers that make up the expression.
Calculate the confidence for an expression, as the lowest confidence in the expression-infos for the identifiers that make up the expression.
(highest-confidence cs)Returns the highest confidence in a sequence of confidences.
Returns the highest confidence in a sequence of confidences.
(join-maps-with-operator op eim)Joins eim, an expressions-info map with multiple entries into an
expressions-info map with a single entry that is an SPDX expression joining
all of the entries via SPDX operator op (either :and or :or).
Joins `eim`, an expressions-info map with multiple entries into an expressions-info map with a single entry that is an SPDX expression joining all of the entries via SPDX operator `op` (either :and or :or).
(lowest-confidence cs)Returns the lowest confidence in a sequence of confidences.
Returns the lowest confidence in a sequence of confidences.
(merge-maps & maps)Merges any number of expressions-info maps, by concatenating and de-duping values for the same key (expression). Returns a single map that may contain multiple map entries.
Merges any number of expressions-info maps, by concatenating and de-duping values for the same key (expression). Returns a single map that may contain multiple map entries.
(prepend-source s m)Prepends the given source s (a String) onto the :source sequence of all expression-info sub-maps in m (an expressions-info map).
Prepends the given source s (a String) onto the :source sequence of all expression-info sub-maps in m (an expressions-info map).
(sort-confidences cs)Sorts a sequence of confidences from low to high.
Sorts a sequence of confidences from low to high.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |