Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guard support ? #47

Open
yellowbean opened this issue Mar 26, 2020 · 0 comments
Open

Guard support ? #47

yellowbean opened this issue Mar 26, 2020 · 0 comments

Comments

@yellowbean
Copy link

Hi, Great jobs on pampy ! this is the closest thing I could find to core.match from clojure.

I'm wondering if we can apply a new guard function in matching pattern ?

match ( 3,
    (lambda x: x%2==1), print("It is even number"),
    ....
    _, print("not match")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant