Skip to content

Instantly share code, notes, and snippets.

@jut-test
Last active December 23, 2015 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jut-test/273396ac4efcc838687b to your computer and use it in GitHub Desktop.
Save jut-test/273396ac4efcc838687b to your computer and use it in GitHub Desktop.
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