Thanks for this library, it's really nice.
If found an issue with an example on the web page.
If you run this code, nothing matches, it returns undefined:
matches([1])(
(a, b, tail) => 'Will not match here',
(a = 2, tail = []) => 'Will not match here',
(a = 1, tail) => 'Will match here, tail = []'
)
I would have expected the 3rd case to match.
Did the library change and the docs haven't been updated?
Thanks for this library, it's really nice.
If found an issue with an example on the web page.
If you run this code, nothing matches, it returns undefined:
I would have expected the 3rd case to match.
Did the library change and the docs haven't been updated?