Skip to content

Guard support ? #47

@yellowbean

Description

@yellowbean

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")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions