Skip to content

Match equality function #3

@SamTebbs33

Description

@SamTebbs33

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 {
...
}
`

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions