Skip to content

Instantly share code, notes, and snippets.

@ericbmerritt
Created November 26, 2011 20:39
Show Gist options
  • Save ericbmerritt/1396266 to your computer and use it in GitHub Desktop.
Save ericbmerritt/1396266 to your computer and use it in GitHub Desktop.
?FORALL({FunName, ArgName, Op}, {ident(), ident(), op()},
begin
Expr = lists:flatten(
io_lib:format("(defn ~s [~s] (~s (mod ~s) 0))",
[FunName, ArgName, Op, ArgName])),
Tokens = jxa_lex:lex(Expr),
[] == Tokens
end).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment