emojid: use trie

This commit is contained in:
Swrup 2022-12-31 06:01:03 +01:00
parent 4dd63360a2
commit 9c769ae947
4 changed files with 71 additions and 50 deletions

5
src/emojid.mli Normal file
View file

@ -0,0 +1,5 @@
(** [make uuid] creates an emojid for [uuid]; hopefully returns [Ok emojid] *)
val make : string -> (string, string) result
(** [get uuid] is [Ok emoji] if [uuid] has an emojid *)
val get : string -> (string, string) result