alestane

Dictionary tree (hard-code)

Feb 3rd, 2014
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.17 KB | None | 0 0
  1. local dictionary = {}
  2.  
  3. local word = 'BAG'
  4.  
  5. dictionary['B'] = {}
  6.  
  7. dictionary['B']['A'] = {}
  8.  
  9. dictionary['B']['A']['G'] = {}
  10.  
  11. dictionary['B']['A']['G'][''] = true
Advertisement
Add Comment
Please, Sign In to add comment