Skip to content

Commit ba981d4

Browse files
committed
tweaks examples to match more consistent style
1 parent 255547e commit ba981d4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/eachk.janet

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# keys for tuple/array are 0-based index
22
# prints 0 1 2 3 4
3-
(eachk i [1 2 3 4 5] (prin i " "))
3+
(eachk i [:a :b :c :d :e] (prin i " "))
44

55
# prints 0 1 2 3 4
6-
(eachk i @[1 2 3 4 5] (prin i " "))
6+
(eachk i @["a" "b" "c" "d" "e"] (prin i " "))
77

8-
# keys table/struct, but maybe not in order
8+
# prints keys in table/struct in an unspecified order
99
# prints :b :a
1010
(eachk k {:a 1 :b 2} (prinf "%v " k))
1111

0 commit comments

Comments
 (0)