Is there an equivalent in Scala to Python's more general map function?

Posted by wheaties on Stack Overflow See other posts from Stack Overflow or by wheaties
Published on 2010-04-16T02:17:27Z Indexed on 2010/04/16 2:23 UTC
Read the original article Hit count: 382

I know that Scala's Lists have a map implementation with signature (f: (A) => B):List[B] and a foreach implementation with signature (f: (A) => Unit):Unit but I'm looking for something that accepts multiple iterables the same way that the Python map accepts multiple iterables.

I'm looking for something with a signature of (f: (A,B) => C, Iterable[A], Iterable[B] ):Iterable[C] or equivalent. Is there a library where this exists or a comparable way of doing similar?

© Stack Overflow or respective owner

Related posts about scala

Related posts about python