Last active
December 23, 2015 16:57
-
-
Save jut-test/273396ac4efcc838687b to your computer and use it in GitHub Desktop.
What can Juttle do for you? A module example.
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
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