Replies: 1 comment 3 replies
-
Yes, match is strict on types and then on values. (match [:some]
[a b & rest] :two-or-more
[a] :one # depending on your use case just [head & tail] is sufficient, e.g for recursive algorithms
[] :empty) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
(match [1] [] 1 0)
is1
.What currently works:
Beta Was this translation helpful? Give feedback.
All reactions