Skip to content

Instantly share code, notes, and snippets.

@jut-test

jut-test/main.juttle

Last active Dec 23, 2015
Embed
What would you like to do?
What can Juttle do for you? A module example.
export const pi = 3.14; // visible outside this module
const not_exported = 2; // not visible
export function double(x) { // visible
return x * not_exported;
}
export sub stamper(mark) { // visible
put stamp=mark | put stamp2=mark
}
// top-level flowgraph, does not run when this module is imported
emit
| stamper -mark "test"
| view table;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment