Skip to content

Instantly share code, notes, and snippets.

@amjith
Created June 23, 2015 04:20
Show Gist options
  • Save amjith/e621c3a2e143515a02e3 to your computer and use it in GitHub Desktop.
Save amjith/e621c3a2e143515a02e3 to your computer and use it in GitHub Desktop.
>>> collection = open('/usr/share/dict/words').readlines()
>>> fuzzyfinder('pgcli', collection)
<generator object <genexpr> at 0x102f20eb0>
>>> list(fuzzyfinder('pgcli', collection))
['plagioclinal\n', 'plagioclasite\n', 'plagioclastic\n', 'pragmaticality\n',
'pyrgocephalic\n', 'phagocytolysis\n', 'phagocytolytic\n', 'phenylglycolic\n',
'plagiocephalic\n', 'plagiocephalism\n', 'pathologicoclinical\n', 'periangiocholitis\n',
'pathologicohistological\n', 'pathologicopsychological\n']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment