Untitled
template withInt(i: int, body: untyped) =
template plus(a: int): int = i + a
template minus(a: int): int = i - a
body
withInt 5:
echo plus(4)INFO
template withInt(i: int, body: untyped) =
template plus(a: int): int = i + a
template minus(a: int): int = i - a
body
withInt 5:
echo plus(4)