Use transposeBy method in package.scala