Skip to content

Instantly share code, notes, and snippets.

@okram
Created October 30, 2020 11:06
Show Gist options
  • Save okram/296ef1f14a455c487ad2142fb0c61d27 to your computer and use it in GitHub Desktop.
Save okram/296ef1f14a455c487ad2142fb0c61d27 to your computer and use it in GitHub Desktop.
mmlang> [1,2,3] // a stream of 3 ints
==>1
==>2
==>3
mmlang> [1,2,3][id] // passing the stream through the [id] instruction (ring *)
==>1
==>2
==>3
mmlang> [1,2,3][[id],[id]] // passing the stream across two branches with [id] instructions (ring +)
==>1{2}
==>2{2}
==>3{2}
mmlang> [1,2,3][[id],[id]{-1}] // putting the two branches out of phase with each for destructive inteference (ring -)
mmlang>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment