IA
оно достаточно scala-way, или есть способ лучше?
Size: a a a
IA
a
IA
Б
import cats.instances.map._
import cats.instances.list._
import cats.syntax.foldable._
a.map(_.mapValues(List(_)).toMap).combineAll
OO
import cats.instances.map._
import cats.instances.list._
import cats.syntax.foldable._
a.map(_.mapValues(List(_)).toMap).combineAll
Б
P
P
P
.flatten.groupBy(_._1).mapValues(_.map(_._2))V
P
OO
λ
B
KS
Oℕ
DM
B
Oℕ
Oℕ