summary refs log tree commit diff stats
path: root/tests/seq/ttoseq.nim
blob: 33de59538d8c4121d741fc9cecdd81f0db5eb3f5 (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"