=str #16349 fix map + map optimization

This commit is contained in:
Martynas Mickevičius 2014-11-20 17:01:49 +02:00
parent 55980aded5
commit 67e2ba9263
2 changed files with 11 additions and 2 deletions

View file

@ -228,7 +228,7 @@ case class ActorBasedFlowMaterializer(override val settings: MaterializerSetting
case noMatch if !optimizations.simplification || (noMatch ne orig) orig
// Two consecutive maps is equivalent to one pipelined map
case Ast.Map(second) :: Ast.Map(first) :: rest Ast.Map(first compose second) :: rest
case Ast.Map(second) :: Ast.Map(first) :: rest Ast.Map(first andThen second) :: rest
case noMatch noMatch
}