Hacker News new | ask | show | jobs
by arthursilva 3836 days ago
Or even better

line.split(' ').filter(|word| matches(word, search)).count()

1 comments

I love the functional programming style embraced by Rust.