Scala porting sweep #6