I'd do something like: ``` fun paths(base: File, v...
# stdlib
j
I'd do something like:
Copy code
fun paths(base: File, vararg pathSegments: String): File {
  var result = base
  for (pathSegment in pathSegments) {
    result = File(result, pathSegment)
  }
  return result
}