Last active
July 15, 2016 22:40
-
-
Save slorber/4a6cebd31e8d9e36c23cfc2a358650ba to your computer and use it in GitHub Desktop.
This file contains 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
const myProgram = [ | |
{ | |
op: "transform_list_elements", | |
transformation: { op: "multiply" : multiplier: 2 } | |
}, | |
{ | |
op: "transform_list_elements", | |
transformation: { op: "add" : value: 1 } | |
} | |
] | |
interpreter.run(myProgram,[1,2,3]) // returns [3,5,7] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment