Skip to content

Instantly share code, notes, and snippets.

@seven-phases-max
Created September 24, 2014 16:34
Show Gist options
  • Save seven-phases-max/ecbb4cd34271d71b45fa to your computer and use it in GitHub Desktop.
Save seven-phases-max/ecbb4cd34271d71b45fa to your computer and use it in GitHub Desktop.
.add(@a, @b) {
@-: (@a + @b);
}
.mul(@a, @b) {
@-: (@a * @b);
}
usage {
.1; .2;
.1() {@a: @-;.add(1, 2)}
.1() {@b: @-;.add(3, 4)}
.2() {@r: @-;.mul(@a, @b)}
result: @r;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment