Github user advancedxy commented on the pull request: https://github.com/apache/spark/pull/4002#issuecomment-69860273 @andrewor14 would you mind to take a look again? ``` positions(r.length, numSlices).zipWithIndex.map({ case ((start, end), index) => // the redundant "({" is necessary, as there is an infix operator // If the range is inclusive, use inclusive range for the last slice if (r.isInclusive && index == numSlices - 1) { new Range.Inclusive(r.start + start * r.step, r.end, r.step) } else { new Range(r.start + start * r.step, r.start + end * r.step, r.step) } }).toSeq.asInstanceOf[Seq[Seq[T]]] // the toSeq and casting is necessary, otherwise it won't compile due to type mismatch ``` I update some docs. There may be some wrongly chosen words as I am not a native speaker. Please correct me if you see any.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org