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

Fix third example #49

Closed mikelyons closed 6 years ago

mikelyons commented 6 years ago

Third condition matches

leonardiwagner commented 6 years ago

actually the example is correct, in your change tail would be [2] instead []