You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not entirely sure what this would give. Given similar generates a mutable object, it cannot be an ArrayPartition of numbers since that's not mutable. But it needs the tuples to be an array partition, and putting things in arrays would change the underlying structure.
I was already guessing that primitives being immutable are at the heart of the problem. Could one then just disallow ArrayPartition involving primitives? Of course, one could always wrap them into an array, where it always works (ArrayPartition([a], b) in my example)...
If I have an
ArrayPartition
involving a primitive type, such as a regular number, creating a similar throughsimilar
array fails.Example:
ArrayPartitions are not designed for single numbers, but it would be nice if it also works for these types.
The text was updated successfully, but these errors were encountered: