Skip to content
Browse files

use reverse_:::

  • Loading branch information...
1 parent abb1eb5 commit 2b3e0c0d049bb57fab8bd268665580c470998929 @xuwei-k xuwei-k committed
View
2 core/src/main/scala/scalaz/PLens.scala
@@ -426,7 +426,7 @@ trait PLensFunctions extends PLensInstances with PLensFamilyFunctions {
plens {
case Nil => None
case h :: t => lookupr(Nil, h, t) map {
- case (l, (k, v), r) => Store(w => l.reverse ::: (k, w) :: r, v)
+ case (l, (k, v), r) => Store(w => l reverse_::: (k, w) :: r, v)
}
}
}
View
4 core/src/main/scala/scalaz/These.scala
@@ -233,11 +233,11 @@ trait TheseFunctions {
def loop(aa: List[A], bb: List[B], accum: List[A \&/ B]): List[A \&/ B] = {
aa match {
case Nil =>
- accum.reverse ::: bb.map(That[A, B](_))
+ accum reverse_::: bb.map(That[A, B](_))
case h::t =>
bb match {
case Nil =>
- accum.reverse ::: aa.map(This[A, B](_))
+ accum reverse_::: aa.map(This[A, B](_))
case hh::tt =>
loop(t, tt, Both(h, hh) :: accum)
}
View
2 xml/src/main/scala/scalaz/xml/cursor/Cursor.scala
@@ -321,7 +321,7 @@ sealed trait Cursor {
unconsOption(parents) {
case ((pls, v, prs), ps) =>
cursor(
- current = Content.elem(v.fromTag(lefts.reverse ::: rights))
+ current = Content.elem(v.fromTag(lefts reverse_::: rights))
, lefts = pls
, rights = prs
, parents = ps

0 comments on commit 2b3e0c0

Please sign in to comment.
Something went wrong with that request. Please try again.