Hello,
I would like to take two
PathSet and join / concatenate them prior to applying
take(n: Int) and then
toSeq.
How can I do that? The code I have won't compile because of a type mismatch:
val batchPaths =
trashDirs.foldLeft(PathSet[Path]()) { (pathSet, trashPath: Path) =>
val eligible = eligibleInDir(trashPath, perDirLimit)
newlyEncountered ++= namesToTrack
pathSet ++ eligible
}
The compiler complains thusly about the line shown in
red above:
[error] found : scalax.file.PathSet[scalax.file.Path]
[error] required: scalax.file.BasicPathSet[scalax.file.Path]
[error] pathSet ++ eligible
[error] ^
Randall Schulz