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

Match equality function #3

Open
SamTebbs33 opened this issue Aug 7, 2018 · 0 comments
Open

Match equality function #3

SamTebbs33 opened this issue Aug 7, 2018 · 0 comments
Assignees
Projects

Comments

@SamTebbs33
Copy link
Owner

Make it possible to provide a custom equality definition that the match statement uses to decide which case(s) to follow.

`
match $x {
...
}

template sameType(a, b): return typeOf(a) == typeOf(b)

match $y by sameType {
...
}
`

@SamTebbs33 SamTebbs33 self-assigned this Aug 7, 2018
@SamTebbs33 SamTebbs33 added this to To do in elk via automation Aug 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
elk
  
To do
Development

No branches or pull requests

1 participant