I try to use: (^10).map({0})
to generate a list with 10 '0'.
Is there another way to do it?
0 xx 10
Generates a list of 10 integers numbered zero.
'0' xx 10
Generates a list of 10 strings consisting of the single character '0'.
See xx
infix op doc.
'0' x 10
Generates a single string consisting of a sequence of 10 '0' characters.
See x
infix op doc.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With