Skip to content

Commit

Permalink
use reverse_:::
Browse files Browse the repository at this point in the history
Cherry-picking commit 2b3e0c0
  • Loading branch information
xuwei-k authored and larsrh committed Sep 21, 2013
1 parent 506e492 commit 201dbb7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/src/main/scala/scalaz/PLens.scala
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ trait PLensFunctions extends PLensFamilyFunctions with PLensInstances {
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)
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions core/src/main/scala/scalaz/These.scala
Original file line number Diff line number Diff line change
Expand Up @@ -240,11 +240,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)
}
Expand Down
2 changes: 1 addition & 1 deletion xml/src/main/scala/scalaz/xml/cursor/Cursor.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 201dbb7

Please sign in to comment.