Deep ....
rest operator
#1238
danielbayley
started this conversation in
Ideas
Replies: 2 comments
-
I could see TopLevelSingleLineStatements:first NestedTopLevelStatements*:rest ->
return [
...first.map(s => ["", ...s]),
...rest.flat(),
] Is this clearer with I don't think it makes sense to flatten other objects. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Four consecutive dots already has a meaning: https://civet.dev/playground?code=ZiAuLi4u |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How about something like this?
Perhaps by compiling to something using
.flat()
…Also thinking maybe
....
would flatten one level, while.....
could beInfinity
?Beta Was this translation helpful? Give feedback.
All reactions