Skip to content
Boris Shilov edited this page Jun 21, 2019 · 3 revisions

Add a column

You can use the flatZip method to add a column:

import com.github.marklister.collections._
CollSeq(("Jan",2,3),
        ("Feb",5,6),
        ("Mar",3,4)) flatZip Seq(11,12,13)

res0: com.github.marklister.collections.immutable.CollSeq4[String,Int,Int,Int] =
CollSeq((Jan,2,3,11),
        (Feb,5,6,12),
        (Mar,3,4,13))