Skip to content

Instantly share code, notes, and snippets.

Created February 15, 2015 08:27
What would you like to do?
import sequtils
template test(x: int; list: varargs[int]): expr =
foldl(list, a*(b+x))
echo test(5, 1, 2, 3, 4) # 504
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment