Just package:trie-simple

TMap which contains only one entry from the empty string to a.
Apply a function to the entry with given key.