summary refs log tree commit diff stats
path: root/tests/run/ttoseq.nim
blob: 34cc4824befe8ef74a06da0f875a6ea160af450c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
discard """
  output: "2345623456"
"""

import sequtils

for x in toSeq(countup(2, 6)): 
  stdout.write(x)
for x in items(toSeq(countup(2, 6))): 
  stdout.write(x)

import strutils

var y: type("a b c".split)
y = "xzy"