cl-double-array provides common-prefix-search
.
(defvar words '("a" "to" "tea" "ted" "ten" "i" "in" "inn" "int" "inter" "internet"))
(defvar double-array (build-double-array words))
(common-prefix-search double-array "internet!")
; => ("i" "in" "int" "inter" "internet")
(complete double-array "int")
; => ("int" "inter" "internet") ; Random order
ros install carrotflakes/cl-double-array
- carrotflakes (carrotflakes@gmail.com)
Copyright (c) 2018 carrotflakes (carrotflakes@gmail.com)
Licensed under the LLGPL License.