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

Add flatten-array exercise #46

Merged
merged 1 commit into from
Aug 28, 2024
Merged

Conversation

ageron
Copy link
Contributor

@ageron ageron commented Aug 28, 2024

This was a tricky one because:

  • There's no null in Roc. So I used a Null tag.
  • Nested arrays require tags as well. I used NestedArray [...] and Value 123.
  • I had to write .meta/plugins.py to properly generate these nested arrays in Roc.

However, the solution was comparatively easy.

@ageron ageron merged commit 37c1f50 into exercism:main Aug 28, 2024
3 checks passed
@ageron ageron deleted the add-flatten-array branch August 28, 2024 10:48
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.

1 participant