Replies: 1 comment 3 replies
-
There are no variadic patterns in egg right now. The difficulty would be that a variable could then refer to any number of eclass ids. Could you try a cons-list representation? That should allow you to efficiently manipulate heads of lists. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm wanting to model uninterpreted functions in egg but I'm not sure how I'd do something akin to this:
Which would have the variant type of
The problem I forsee is trying to match on that, e.g.
The problem is the trailing arguments, do you have to generate patterns for a set number of cases or is there some sort of
...?args
notation?Beta Was this translation helpful? Give feedback.
All reactions