z-pattern-matching/z

Multi-Character global condition match failure

Open

#61 aberto em 28 de jan. de 2020

Ver no GitHub
 (0 comments) (0 reactions) (0 assignees)JavaScript (78 forks)batch import
bughelp wanted

Métricas do repositório

Stars
 (1.714 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

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.

Guia do colaborador