We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I wanted to get the filenames from a PathSet, so I tried doing this:
ps.map(_.name)
That, unexpectedly, doesn't really work. Well, it works, but the result is not a PathSet[String]. Instead, the result is:
scalax.file.PathSet[Comparable[_ >: String with scalax.file.Path <: Comparable[_ >: String with scalax.file.Path <: Comparable[_ >: String with scalax.file.Path <: Object]]]]
It works if I use breakOut, and it works if I transform it into something other than a PathSet first.
Is this truly necessary, or could it be solved by dropping a covariance or moving some implicit to a lower priority?
The text was updated successfully, but these errors were encountered:
I found this too. I had to use toList on PathSet to get a general list.
toList
PathSet
Sorry, something went wrong.
No branches or pull requests
I wanted to get the filenames from a PathSet, so I tried doing this:
ps.map(_.name)
That, unexpectedly, doesn't really work. Well, it works, but the result is not a PathSet[String]. Instead, the result is:
scalax.file.PathSet[Comparable[_ >: String with scalax.file.Path <: Comparable[_ >: String with scalax.file.Path <: Comparable[_ >: String with scalax.file.Path <: Object]]]]
It works if I use breakOut, and it works if I transform it into something other than a PathSet first.
Is this truly necessary, or could it be solved by dropping a covariance or moving some implicit to a lower priority?
The text was updated successfully, but these errors were encountered: