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
It appears that none of the collection constraints work with Array. I think this is an oversight: the constraints are defined in terms of Iterable but it turns out that Array is not Iterable for some reason. Solution: another specialized class has to be defined for Array, similar to that for String.
Library version: 2.6.0
Scala version: 3.5.2
The text was updated successfully, but these errors were encountered:
It is intented that Array is not an Iterable since it is a Java/JVM object rather something native from Scala. There is instead an implicit conversion to Iterable, just like String.
Solution: another specialized class has to be defined for Array, similar to that for String.
This is the way. I'm currently too busy atm to do it so if anyone wants to tackle it, they are welcome!
It appears that none of the collection constraints work with
Array
. I think this is an oversight: the constraints are defined in terms ofIterable
but it turns out thatArray
is notIterable
for some reason. Solution: another specialized class has to be defined forArray
, similar to that forString
.Library version: 2.6.0
Scala version: 3.5.2
The text was updated successfully, but these errors were encountered: