summary refs log tree commit diff stats
path: root/tests/compile/tstrtabs.nim
blob: 251ec77eff67e5eea5fc0c1bcdc29e558e487f02 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
import strtabs

var tab = newStringTable({"key1": "val1", "key2": "val2"}, 
                         modeStyleInsensitive)
for i in 0..80:
  tab["key_" & $i] = "value" & $i
  
for key, val in pairs(tab):
  writeln(stdout, key, ": ", val)
writeln(stdout, "length of table ", $tab.len)

writeln(stdout, `%`("$key1 = $key2; ${PATH}", tab, {useEnvironment}))
commit/ranger/core/main.py?h=v1.9.2&id=166398d4ba1527d6d0d59f000dee42071b4eabde'>166398d4 ^
a4570538 ^




5b8b6d60 ^
a4570538 ^
02fd8621 ^
a4570538 ^











a92f6409 ^

a4570538 ^




a92f6409 ^



a4570538 ^

a92f6409 ^
a4570538 ^


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108