Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anagrams exercise #23

Open
apobits opened this issue Jul 19, 2021 · 0 comments
Open

Anagrams exercise #23

apobits opened this issue Jul 19, 2021 · 0 comments

Comments

@apobits
Copy link

apobits commented Jul 19, 2021

On lambdas and streams chapter there is this exercise:
image
The problem here is that variable words refer to a stream of lines so the program is processing lines not words. I present a solution using flatMap on words where the line is splitted with a regex(I assumed the words are separated in the file with space, comma, tab, point, dash).
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant