Closed xavierguihot closed 6 years ago
Hello,
This is a suggestion for a bunch of pimps on List[(K, V)]:
List[(K, V)]
keys
.map(_._1)
values
.map(_._2)
mapValues
mapSecond
flatMapValues
flatMap
Nice addition, thanks.
Hello,
This is a suggestion for a bunch of pimps on
List[(K, V)]
:keys
which is.map(_._1)
values
which is.map(_._2)
mapValues
which is an alias formapSecond
flatMapValues
which is theflatMap
equivalent ofmapValues