-
Notifications
You must be signed in to change notification settings - Fork 501
Make Builtins.unsafeUncons use builtin list casing
#7467
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
base: master
Are you sure you want to change the base?
Conversation
|
@ana-pantilie Can you review this PR please? Or if someone else would be correct reviewer, let me know - not sure who to tag here. |
|
Also I'm not sure why |
|
@sohang3112 I've tagged @SeungheonOh as the reviewer and I've approved the GitHub Workflows to run. |
|
@SeungheonOh Please review this PR. Also re the failing CI checks:
|
@ana-pantilie |
|
Hi, my apologies for delay. This PR doesn't do what I described in the issue. This reuses --pseudo plc
case <list>
<cons branch : x -> list x -> r>
<nil branch : r>For this, since we are casing the case <list>
<cons branch : x -> list x -> r>which will fail if empty list is given. To accomplish this, one need to add new builtin to |
|
@SeungheonOh As per your feedback, I have created a new builtin |
|
Hi @sohang3112, thanks for your contribution but please be patient, Seungheon is on PTO so he'll answer when he gets back. |
|
Hi, thanks for the change. This is a correct direction; however this won't actually compile because it doesn't provide accompanying definition in Also please add a test case. |

avoid seperate head, tail calls in
Builtins.unsafeUncons. No Changelog Required. Fixes #7459Pre-submit checklist: