Commit graph

20 commits

Author SHA1 Message Date
b32d0465ea small (but useful) optimization to is_anagram
checking length avoids sorting in many cases
2020-05-19 11:30:56 +02:00
9f22e75549 line_to_word applied to Dictionary::load 2020-05-19 11:28:08 +02:00
ac99a172cc
Refactor Dictionary creation 2020-05-19 10:52:23 +02:00
b552804b56
Refactor line_to_word
Avoid taking ownership if not needed.
Use idiomatic rust.
2020-05-19 10:51:31 +02:00
e02fb4fecd
Follow linting suggestions 2020-05-19 10:50:03 +02:00
1b96ac1177
Debug trait on Dictionary 2020-05-19 10:48:17 +02:00
24855e1209
Merge branch 'master' of git.lattuga.net:boyska/sciarada 2020-05-19 09:20:13 +02:00
3184fc4ccf anagram pattern is normalized 2020-05-19 00:08:51 +02:00
86b9a60648 remove apostrophes 2020-05-19 00:02:43 +02:00
7b1a6a93e3 anagrams! 2020-05-18 23:56:58 +02:00
241114c895 deduplicate Dictionary 2020-05-18 23:56:44 +02:00
c9c21d7dfd
Implement Dictionary::load_from_iterable 2020-05-18 16:44:29 +02:00
ded6795623
Automatic fix from rls 2020-05-18 16:43:50 +02:00
244406a71f slight refactoring of load_from_iterable 2020-05-18 16:04:39 +02:00
6ea12cfc46 Dictionary is an Iterator
thought it's probably bad to iterate over it
2020-05-18 15:32:17 +02:00
15ff07c4b3 parser has its own function 2020-05-18 14:57:27 +02:00
67c6bf0a0f decode accents in dict 2020-05-18 13:05:17 +02:00
f35e839110 lowercase dict 2020-05-18 13:01:12 +02:00
a953bf22ec less mutability 2020-05-18 12:56:19 +02:00
30d1d94a68 initial 2020-05-18 12:52:26 +02:00