Wrap the code in a `static: code` block. It will execute it at compile time. 
Example:
    
    
    import sugar
    
    let nums = static:
      collect newSeq:
        for i in 0 .. 10: i
    
    echo nums
    
    
    Run

Reply via email to