Skip to content
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

[WIP] caterpillar #1702

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

[WIP] caterpillar #1702

wants to merge 1 commit into from

Conversation

kostmo
Copy link
Member

@kostmo kostmo commented Jan 2, 2024

Demo of functions-as-lists and their limitations

@byorgey
Copy link
Member

byorgey commented Jan 3, 2024

How is this related to #1699 ?

@kostmo
Copy link
Member Author

kostmo commented Jan 3, 2024

How is this related to #1699 ?

I had first tried to implement a queue for the snake's tail using cons and nil functions, with inspiration from #996 (comment). I then saw for myself how the swarm typechecker chokes when attempting to mutate the list.

I may turn this PR into a testcase for cons/nil, or maybe craft a different scenario in which the limited support for cons/nil (i.e. append-only lists) is still enough to solve a challenge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants