Just in case you need an elegant syntax for slices, use 
[BackwardsIndex](https://nim-lang.org/docs/system.html#%5E.t%2Cint) '^':
    
    
    import std/cmdline
    echo commandLineParams()[1..^1] # '^1' is a shorthand for (list.length - 1)
    # test.exe a b c
    # @["b", "c"]
    
    
    Run

Reply via email to