Notifications
Clear all

[Closed] How to print all elements?

I wanna output an array to a stringStream. Here’s my Script:

a = #()
for i = 1 to 30 do append a i
b = #()
append b a
append b a
c = stringStream “”
with printAllElements on (print b to:c #noMap)

– result:
StringStream:”#(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)
#(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)

And it seems the #noMap option has no effect.I hope to get this result:
– result:
StringStream:”#(#(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),#(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))”

How to get the result I want?

2 Replies

try: with printAllElements on (Format “%” b to:c) ??

1 Reply
(@jausn)
Joined: 11 months ago

Posts: 0

You’re a genius! It works very well!
Thank you!