RyanEdwardHall / anagrambler

Finds all anagrams and sub-anagrams in a string
MIT License
4 stars 1 forks source link

Change key type of children to rune #6

Closed mcgid closed 8 years ago

mcgid commented 8 years ago

Since each node is identified by a single rune, we can use rune as the key type for node's children map.

Pleasantly, this will also reduce the number of calls to string().