Skip to content

griba2001/scala_zipBy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

###Scala utils

Method injection of "zip with function" methods zipBy and zipAllBy

object ZipBy {
  class ToZipBy[A](col: GenIterable[A]) {
    def zipBy[A1 >: A, B, C] (f: A1 => B => C) (that: GenIterable[B]): Iterator[C]
    def zipAllBy[A1 >: A, B, C] (f: A1 => B => C) (that: GenIterable[B], thisElem: A1, thatElem: B): Iterator[C]
  }
implicit def toZipBy[A](col: GenIterable[A]) = new ToZipBy (col)
}

About

scala GenIterable."zip with function"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages