You can express this slightly more elegantly using

    partitionColumns.map(col => "%s=%s/".format(col, partitionColumnToValue(col)).mkString("/"