Ruby array index method SyntaxError in SketchUp

#ruby
arr = [1, 2, 3]
p arr[0…]

#=> syntax error, unexpected ]

array index method seems not working in sketchup

p arr[0..2]

https://docs.ruby-lang.org/en/2.4.0/Array.html

Thank you for replying, I guess it’s just caused by different ruby version
image

1 Like

Good to be at the cutting edge. but working with other applications then need to stay on the middle road…

https://help.sketchup.com/en/sketchup/older-release-notes

I understand version 3 is 3 times faster?

1 Like