Releases: z-pattern-matching/z
Releases · z-pattern-matching/z
Official Release
Horray, z is now official! There are a LOT of improvements and changes
string match
now z match strings:
'test'.matches(
(x = 'testa') => false,
(x = 'test') => true,
(x = 'testo') => false,
function otherwise () { return false }
).should.equal(true)
Alpha
- Pattern matching
- Pattern matching with value comparison (ES6 w/ default parameters only)
- Helper methods: head, init, last, tail