Make Builtins.unsafeUncons use builtin list casing#7467
Make Builtins.unsafeUncons use builtin list casing#7467sohang3112 wants to merge 3 commits intoIntersectMBO:masterfrom
Builtins.unsafeUncons use builtin list casing#7467Conversation
|
@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. |
|
superseded by #7519 since I wasn't given a push right on the branch used here. |

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