aboutsummaryrefslogtreecommitdiff
path: root/motus/lib/wordlist.ml
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@dailly.me>2022-03-01 11:49:55 +0100
committerSébastien Dailly <sebastien@dailly.me>2022-03-01 11:49:55 +0100
commite3088560b6eac99c39338af24c3ef8c81f379ea6 (patch)
treef58fdb9f003cdb2d6fc12efa159a69479c506721 /motus/lib/wordlist.ml
parent5dc124b621ab05ba7dbde306a557947197941228 (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.ml2
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