Skip to content

Commit 07cec32

Browse files
committed
create a simple util function to print items from table
1 parent 40457b2 commit 07cec32

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/array/utils.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,11 @@ return {
4646
end
4747

4848
return output
49+
end,
50+
51+
print_items = function(obj)
52+
for i=1, #obj do
53+
print(obj[i])
54+
end
4955
end
5056
}

0 commit comments

Comments
 (0)