z-pattern-matching / z

Pattern Matching for Javascript
https://z-pattern-matching.github.io/
Apache License 2.0
1.72k stars 50 forks source link

Validate subargs when dealing with array #27

Closed paulojean closed 6 years ago

paulojean commented 6 years ago

The previous behavior did not check the value on head, just that the last arg was an empty array. So, the added test will fail with the old implementation.

Also, see the message on Update examples on README commit.

leonardiwagner commented 6 years ago

@paulojean Thank you, please also open an issue with PR next time to ease the changes tracking.

paulojean commented 6 years ago

ui