We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8a31ba5 + 4e733cf commit bc44c63Copy full SHA for bc44c63
examples/each.janet
@@ -0,0 +1,9 @@
1
+# prints 12345
2
+(each x [1 2 3 4 5] (prin x)) # -> nil
3
+
4
5
+(each y @[1 2 3 4 5] (prin y)) # -> nil
6
7
+# prints values from struct in an unspecified order
8
+# 21 -or- 12
9
+(each x {:a 1 :b 2} (prin x)) # -> nil
0 commit comments