Join Slack
Powered by
Does `Array.sliceArray` return a view on the origi...
# stdlib
e
eygraber
03/03/2023, 1:15 AM
Does
Array.sliceArray
return a view on the original array, and if not, is there a way to do that?
e
ephemient
03/03/2023, 3:44 AM
arrays types are built into the runtime (e.g. JVM), don't have sharing, and can't be overridden. use lists instead.
e
eygraber
03/03/2023, 4:08 AM
I'm working with an API that takes an Array and it would be nice to do it without having to copy the Array
i
ilya.gorbunov
03/03/2023, 9:59 PM
No, it's not possible to have an array that is a view of another array on JVM.
🙏 1
2
Views
Open in Slack
Previous
Next