z-pattern-matching/z

Multi-Character global condition match failure

Open

#61 opened on Jan 28, 2020

View on GitHub
 (0 comments) (0 reactions) (0 assignees)JavaScript (1,714 stars) (78 forks)batch import
bughelp wanted

Description

I'm running into what may be a conceptual issue rather than an actual issue. Are multi-character match variables supported?

E.g.

let string = "test"; match(string)( (s) => { console.log(s); } )

Executes as expected logging

test

but

let string = "test"; match(string)( (str) => { console.log(str); } )

generates no output.

Contributor guide