Skip to content

Instantly share code, notes, and snippets.

@evincarofautumn
Last active August 29, 2015 14:08
Show Gist options
  • Save evincarofautumn/3c76bccdeb619f5439fa to your computer and use it in GitHub Desktop.
Save evincarofautumn/3c76bccdeb619f5439fa to your computer and use it in GitHub Desktop.
// Translation of https://gist.github.com/jeaye/ae36de6b677c4000ce67
data queue:
case queue ([<s...> (s... -> s...)])
define push<s...> (queue (s... -> s...) -> queue):
-> f;
match:
case queue:
f append queue
define go (queue ->):
match:
case queue:
\apply each
define work (->):
"working" say
[] queue
{ "first" say } push
\work push
go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment