i have val in format of typedpipe[(long, long)]
, how switch left , right columns around? more clearly, how create new val left column value in right column, right columns value populated in left?
use map
:
val tp: typedpipe[(long, long)] = ??? val pt: typedpipe[(long, long)] = tp.map( x => (x._2, x._1) )
Comments
Post a Comment