6 ms·
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. Jus
by ttttannebaum 15y 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.
- zephod 15y agoI'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.