Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions examples/each.janet
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# prints 12345
(each x [1 2 3 4 5] (prin x)) # -> nil

# prints 12345
(each y @[1 2 3 4 5] (prin y)) # -> nil

# prints values from struct in an unspecified order
# 21 -or- 12
(each x {:a 1 :b 2} (prin x)) # -> nil