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