Skip to content

Instantly share code, notes, and snippets.

@slorber
Last active July 15, 2016 22:40
Show Gist options
  • Save slorber/4a6cebd31e8d9e36c23cfc2a358650ba to your computer and use it in GitHub Desktop.
Save slorber/4a6cebd31e8d9e36c23cfc2a358650ba to your computer and use it in GitHub Desktop.
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