Hacker News new | ask | show | jobs
by ttttannebaum 5295 days ago
In fact:

max(wordlist, key=(lambda w: intersect(w, charlist))

should replace a good portion of the create_mnemonic function. But now I'm just showing off. Just letting you know that Python is much cooler than you know.

Haskell, however, could probably do this in a few lines.

1 comments

I've got a pull request sitting on GitHub showing me exactly this. Awesome! I'm about eight months into Python but my knowledge isn't particularly deep.