For example, in python I could say something along the lines of
arr = range(0,30)
and get an array with said elements.
I suspect that something similar might be possible with a subscript in Swift, but after scouring the documentation and Apple's iBook I can't find a "batteries-included" solution for generating said array.
Is this something I'd have to write the code manually for, or is there a pre-written method for it?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…