Skip to content

Instantly share code, notes, and snippets.

@tmcw
Created August 19, 2013 17:43
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 tmcw/6271939 to your computer and use it in GitHub Desktop.
Save tmcw/6271939 to your computer and use it in GitHub Desktop.
Gist from mistakes.io
require('http://bit.ly/19EpLgV');
subscript('@string');
subscript(1);
subscript([]);
subscript(['+', 1, 1]);
subscript(['cos', 0]);
subscript(['first', 2, 3, 4, 5]);
subscript(['let', [['x', 42]], 'x']);
subscript([
['lambda',
['x'],
['*', 'x', 'x']
], [2]]);
subscript(['if',
true, '@foo', '@bar']);
subscript(['=', 2, 2]);
// functions to js
fn = subscript(['lambda', ['x'],
['/', 'x', 2]]);
fn([8]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment