_toString

trait _toString[A]
class java.lang.Object
trait scala.Matchable
class Any
trait _use
object Stream

Def

inline def makeString(separator: String)(using t: Any.Def.Tag[A]): String

Convert to String

Convert to String

The result is a concatenation of all elements with given separator

   ('a' <> 'j').stream.makeString("")            // Returns abcdefghij

   ('a' <> 'j').stream.makeString("|")           // Returns a|b|c|d|e|f|g|h|i|j

Source
_toString.scala
inline def toText(using t: Any.Def.Tag[A]): String

Elements as multi-line String

Elements as multi-line String

Returns all elements as String formatted table

If elements implement Able.Doc, each 'doc' property value is placed in a different column

If elements implement scala.Product (like all Tuples), each Product element is placed in a different column

  ('a' <> 'e').stream.map(v => (v + "1", v + "2", v + "3", v + "4", v + "5")).toText.tp

  // Output
  -- -- -- -- --
  ?  ?  ?  ?  ?
  -- -- -- -- --
  a1 a2 a3 a4 a5
  b1 b2 b3 b4 b5
  c1 c2 c3 c4 c5
  d1 d2 d3 d4 d5
  e1 e2 e3 e4 e5
  -- -- -- -- --
Source
_toString.scala