diff options
author | Sébastien Dailly <sebastien@dailly.me> | 2022-03-01 11:49:55 +0100 |
---|---|---|
committer | Sébastien Dailly <sebastien@dailly.me> | 2022-03-01 11:49:55 +0100 |
commit | e3088560b6eac99c39338af24c3ef8c81f379ea6 (patch) | |
tree | f58fdb9f003cdb2d6fc12efa159a69479c506721 /motus/lib/wordlist.ml | |
parent | 5dc124b621ab05ba7dbde306a557947197941228 (diff) |
Change in the entropy algorithm : prefer words in the final list instead of picking the first one with the greatest quantity of information
Diffstat (limited to 'motus/lib/wordlist.ml')
-rw-r--r-- | motus/lib/wordlist.ml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/motus/lib/wordlist.ml b/motus/lib/wordlist.ml index 4a84ab0..733ca3a 100644 --- a/motus/lib/wordlist.ml +++ b/motus/lib/wordlist.ml @@ -25,3 +25,5 @@ let list_size = S.cardinal let remove_word t w = S.remove w t let pick = S.choose_opt + +let mem = S.mem |