groostav
07/08/2016, 6:13 AMSet<java.nio.Path> instance:
the code
val paths = emptySet<Path>();
paths += Paths.get("/a/b/c")
will result in the paths object having three entries, /a, b, and c. This is because Path itself extends Iterable<Path>, thus, the += overload we hit is this one:
public operator fun <T> Set<T>.plus(elements: Iterable<T>): Set<T>
any idea how I can explicitly call the plus(element: T) instead of plus(elements: Iterable<T>)?