Skip to content

Instantly share code, notes, and snippets.

@okram
Created Oct 30, 2020
Embed
What would you like to do?
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