- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
map2/map3
Mon, 2009-05-18, 02:10
Anyone know what syntax is being suggested as an alternative to the now
deprecated map2 and map3, and whether it's real?
* @deprecated use (xs, ys).map(f) instead
* @deprecated use (xs, ys, zs).map(f) instead
I don't see any evidence that either of these has much chance of
working. Losing map2 is no big deal, xs zip ys is fine, but it's a lot
clumsier to use zip once you get to three and beyond because you get
((a,b),c)s where you want (a,b,c)s. (If you look in MatchUtil you will
find my long ago written "ListPlus" class including zip3...)