Skip to content

Commit

Permalink
Merge pull request #1 from xeno-by/patch-1
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
DarkDimius committed May 13, 2016
2 parents 5d491fd + a3367fa commit e0e74bc
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ object rules{
Rewrite(from = x.filter(a).filter(b),
to = x.filter(x => a(x) && b(x)))

def prettyPrint(x: Any)(implicit source: Source[x.type]) =
Rewrite(from = Test.myPrettyPrint(x), // additionally to optimisations, possible use-cases include pretty-printing of debug messages
to = println(source + " = " + x)) // source here will be replaced by the tree.show corresponding to `x`

def customFancyWarning(x: ParSeq[Int], x: (Int, Int) => Int) =
Warn(pattern = x.reduceLeft(x)), // custom warnings are also supported
msg = “reduceLeft on parallel collection makes no sense”)
Expand Down

0 comments on commit e0e74bc

Please sign in to comment.