Compare commits
1 commit
f5083b3c67
...
ae04d78974
Author | SHA1 | Date | |
---|---|---|---|
ae04d78974 |
1 changed files with 1 additions and 2 deletions
|
@ -59,8 +59,7 @@ impl From<&str> for Group {
|
||||||
.trim()
|
.trim()
|
||||||
.lines()
|
.lines()
|
||||||
.map(|line| {
|
.map(|line| {
|
||||||
let chars: HashSet<char> = line.chars().filter(|&c| c.is_alphabetic()).collect();
|
line.chars().filter(|&c| c.is_alphabetic()).collect()
|
||||||
chars
|
|
||||||
})
|
})
|
||||||
.fold(
|
.fold(
|
||||||
"abcdefghijklmnopqrstuvwxyz".chars().collect(),
|
"abcdefghijklmnopqrstuvwxyz".chars().collect(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue