Skip to content
This repository has been archived by the owner on Jun 15, 2021. It is now read-only.

Implement guards for pattern matching #40

Open
SimonRichardson opened this issue Oct 11, 2013 · 1 comment
Open

Implement guards for pattern matching #40

SimonRichardson opened this issue Oct 11, 2013 · 1 comment
Assignees
Milestone

Comments

@SimonRichardson
Copy link
Owner

var m = match([
        ['Cons(a, Cons(b, Nil)) if(a === b)', function(x, y) {
            return x + y;
        }],
        ['_', function() {
            return 0;
        }]
    ]);
@SimonRichardson
Copy link
Owner Author

See also #37

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant