Advertisement
Guest User

make-trie function sample

a guest
Feb 25th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.35 KB | None | 0 0
  1. (defun make-trie (dict)
  2.   (iterate (for each in (get-current-keys dict))
  3.     (collect
  4.         (list each
  5.               (list :hanzi   (get-resolutions-at each dict)
  6.                     :subtrie (make-trie
  7.                               (iterate (for row in (elts-with each dict))
  8.                                 (collect (truncate-dict-key row)))))))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement