Untitled

Run Settings
LanguageNim
Language Version
Run Command
import macros #[ Compare to the expresion newSeq[int](10), which is represented by the AST: StmtList Call BracketExpr Ident !"newSeq" Ident !"int" IntLit 10 ]# macro dseq(len : int) : untyped = let procTyped = newNimNode(nnkBracketExpr).add(ident("newSeq")).add(ident("int")) result = newCall(procTyped, [len]) let a = dseq(10)
Editor Settings
Theme
Key bindings
Full width
Lines