Rewrite emacs-flx in Clojure
Rewrite emacs-flx in Clojure
(bigger-sublist sorted-list val)
Return sublist bigger than VAL from sorted SORTED-LIST.
If VAL is nil, return entire list.
Return sublist bigger than VAL from sorted SORTED-LIST. If VAL is nil, return entire list.
(boundary-p last-char char)
Check if LAST-CHAR is the end of a word and CHAR the start of the next.
This function is camel-case aware.
Check if LAST-CHAR is the end of a word and CHAR the start of the next. This function is camel-case aware.
(capital-p ch)
Check if CHAR is an uppercase character.
Check if CHAR is an uppercase character.
(fill-vec length inital-value)
Fill list with INITIAL-VALUE.
Fill list with INITIAL-VALUE.
(find-best-match str-info
heatmap
greater-than
query
query-len
q-index
match-cache)
Recursively compute the best match for a string, passed as STR-INFO and HEATMAP, according to QUERY.
Recursively compute the best match for a string, passed as STR-INFO and HEATMAP, according to QUERY.
(get-hash-for-string str)
Return hash-table for string where keys are characters.
Value is a sorted list of indexes for character occurrences.
Return hash-table for string where keys are characters. Value is a sorted list of indexes for character occurrences.
(get-heatmap-str str group-separator)
Generate the heatmap vector of string.
Generate the heatmap vector of string.
(inc-vec vec inc beg end)
Increment each element in VEC between BEG and END by INC.
INC defaults to 1. BEG defaults to 0 and is inclusive. END is not inclusive and defaults to the length of VEC.
Increment each element in VEC between BEG and END by INC. INC defaults to 1. BEG defaults to 0 and is inclusive. END is not inclusive and defaults to the length of VEC.
(score str query)
Return best score matching QUERY against STR.
Return best score matching QUERY against STR.
(word-p ch)
Check if CHAR is a word character.
Check if CHAR is a word character.
List of characters that act as word separators in flx.
List of characters that act as word separators in flx.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close