_print

trait _print
class java.lang.Object
trait scala.Matchable
class Any
trait _use
object ~

Def

def printId[A](using Given.DocTag[A]): Unit

Print to console with rows indexed

Print to console with rows indexed

Same as regular print, but with added index as first column identifying the object


('A' <> 'F').~.map(v => (v.Int, v)).print

// Output
----------------- -- --
Id                _1 _2
----------------- -- --
scala.Tuple2@dzkr 65 A
scala.Tuple2@zn1  66 B
scala.Tuple2@71j3 67 C
scala.Tuple2@562u 68 D
scala.Tuple2@c8tt 69 E
scala.Tuple2@p0m8 70 F
----------------- -- --
Source
_print.scala