Created
February 15, 2015 08:27
-
-
Save Deco/0827f2e27dda2cc5fcd2 to your computer and use it in GitHub Desktop.
Revisions
-
Deco created this gist
Feb 15, 2015 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ import sequtils template test(x: int; list: varargs[int]): expr = foldl(list, a*(b+x)) echo test(5, 1, 2, 3, 4) # 504