Advertisement
alestane

Dictionary tree (separation)

Feb 3rd, 2014
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local dictionary = {}
  2.  
  3. local function insertWord(dict, word)
  4.     local head, tail = word:upper():match('^(%a)(%a*)$')
  5. end
  6.  
  7. insertWord(dictionary, 'BAG')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement