Last active
August 29, 2015 14:08
-
-
Save evincarofautumn/3c76bccdeb619f5439fa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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