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

solution2.2.6.2 provided #59

Merged
merged 3 commits into from
Mar 20, 2024
Merged

Conversation

andreas-roehler
Copy link
Contributor

No description provided.

Signed-off-by: Andreas Roehler <andreas.roehler@online.de>
Signed-off-by: Andreas Roehler <andreas.roehler@online.de>
val b: Seq[String] = List("a", "b", "c", "<nothing>")
assert(a == b)
}
Flatten.main(Array())
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would not call this function both within the object and outside. You already managed to do this for other examples, I think the right approach is to call it from outside.

@winitzki
Copy link
Owner

The error is "stack overflow" because you are calling Flatten.main from inside the Flatten object. You should perhaps call it only from outside.

@andreas-roehler
Copy link
Contributor Author

Thanks, done.

@winitzki winitzki merged commit 5aa0c11 into winitzki:master Mar 20, 2024
4 checks passed
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

Successfully merging this pull request may close these issues.

2 participants