Skip to content

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.

3 participants