A copy of a colon-style defined array range fails to grow
-
@vinicity and me were working on a slicing function. We tried to apply the undocumented array-index shortcuts, mentioned by @Discostew in the hint section, with the colon. Probably we found a bug.
ID: LXK738YWK8t1 = ["a", "b","c"] t2 = t1[:0] // only an array with the first element is stored in t2 t2[1] ="Q" t2[2] ="Z" print(t2[0]) // print(t2) would generate the same error
Generates an Unknown type: -162517584.
@Jongjungbu found then a workaround for the slice function. So, together with the fact, that this is maybe not an official functionality, the priority of this bug dumps probably to -1. 🤔 -
Nevertheless, I think it should be fixed. It is really annoying, and puts a damper on the fact that we have all these extremely useful tools for array manipulation.
I also wish that those get added to the official help files, since I think many people do not even know they exist.
-
Very interesting never seen that error code before