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