_transform

trait _Transform[A] extends _toCollections[A] with _toString[A] with _toJava[A] with _toScala[A] with _toTuple[A]
trait _toTuple
trait _toScala
trait _toJava
trait _toString
class java.lang.Object
trait scala.Matchable
class Any
trait _use
object Stream

Def

inline def iterator: scala.collection.Iterator[A]

Iterator view

Iterator view

Wraps current stream as scala.collection.Iterator

Inherited from
_toScala
Source
_toScala.scala
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

Inherited from
_toString
Source
_toString.scala
inline def pack(using s: Specialized[A]): s.Pack

Pack elements

Pack elements

Returns stream elements as Pack

Inherited from
_toCollections
Source
_toCollections.scala
inline def toArray(using t: scala.reflect.ClassTag[A], s: Specialized[A]): s.Array

Convert to Array

Convert to Array

Returns stream elements as Array

 val a : Array[Int] =  (1 <> 10).stream.toArray
Inherited from
_toCollections
Source
_toCollections.scala
inline def toBuffer(using s: Specialized[A]): s.Buffer

Convert to Buffer

Convert to Buffer

Returns stream elements as Buffer

Inherited from
_toCollections
Source
_toCollections.scala
inline def toIdx(using s: Specialized[A]): s.Idx

Convert to Idx

Convert to Idx

Returns stream elements as Idx

Inherited from
_toCollections
Source
_toCollections.scala
inline def toJavaIterator: java.util.Iterator[A]

Convert to Java Iterator

Convert to Java Iterator

Wraps current stream as java.util.Iterator

Inherited from
_toJava
Source
_toJava.scala
inline def toJavaList: java.util.List[A]

Convert to Java List

Convert to Java List

Returns stream elements as java.util.List

Inherited from
_toJava
Source
_toJava.scala
inline def toJavaSpliterator(splitSize: Int): java.util.Spliterator[A]

Convert to Java Spliterator

Convert to Java Spliterator

Wraps current stream as java.util.Spliterator

Inherited from
_toJava
Source
_toJava.scala
inline def toJavaStream(parallel: Boolean): java.util.stream.Stream[A]

Convert to Java Stream

Convert to Java Stream

Wraps current stream as java.util.stream.Stream

Inherited from
_toJava
Source
_toJava.scala
inline def toList: scala.collection.immutable.List[A]

Convert to List

Convert to List

Returns stream elements as scala.collection.immutable.List

Inherited from
_toScala
Source
_toScala.scala
inline def toLookup[KEY, VALUE](using KEY: Specialized[KEY]): KEY.Lookup[VALUE]

Convert to Lookup

Convert to Lookup

Note. This operation is only available for streams holding tuples, like (KEY,VALUE)

Converts a stream of tuples to Lookup

val intLookup : Lookup[Int,Char] = ('A' <> 'F').stream.zipKey(_.toInt).toLookup

intLookup.pairStream.tp   // Prints Stream((69,E), (70,F), (65,A), (66,B), (67,C), (68,D))

val charLookup : Lookup[Char,Int] = ('A' <> 'F').stream.zipValue(_.toInt).toLookup

charLookup.pairStream.tp   // Prints Stream((E,69), (F,70), (A,65), (B,66), (C,67), (D,68))
Inherited from
_toCollections
Source
_toCollections.scala
inline def toLookupBy[KEY](f: A => KEY)(using KEY: Specialized[KEY]): KEY.Lookup[A]

Convert to Lookup

Convert to Lookup

Converts stream to a Lookup collection, where key is created with provided function

val intLookup : Lookup[Int,Char] = ('A' <> 'F').stream.toLookupBy(_.toInt)

intLookup.pairStream.tp   // Prints Stream((69,E), (70,F), (65,A), (66,B), (67,C), (68,D))
Inherited from
_toCollections
Source
_toCollections.scala
inline def toMap[KEY, VALUE]: scala.collection.immutable.Map[KEY, VALUE]

Convert to scala.Map

Convert to scala.Map

Note. This operation is only available for streams holding tuples, like (KEY,VALUE)

Converts a stream of tuples to scala.Map

Inherited from
_toScala
Source
_toScala.scala
inline def toMapBy[B](f: A => B): scala.collection.immutable.Map[B, A]

Convert to scala.Map

Convert to scala.Map

Converts stream to scala.Map, where key is created with provided function

Inherited from
_toScala
Source
_toScala.scala
inline def toProduct: scala.Product

Convert to Product

Convert to Product

Returns stream elements as scala.Product

Inherited from
_toScala
Source
_toScala.scala
inline def toSeq: scala.collection.immutable.IndexedSeq[A]

Convert to Seq

Convert to Seq

Returns stream elements as scala.collection.immutable.IndexedSeq

Inherited from
_toScala
Source
_toScala.scala
inline def toSet(using s: Specialized[A]): s.Set

Convert to unique collection

Convert to unique collection

Returns stream elements as Set

Inherited from
_toCollections
Source
_toCollections.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
  -- -- -- -- --
Inherited from
_toString
Source
_toString.scala
inline def toVector: scala.collection.immutable.Vector[A]

Convert to Vector

Convert to Vector

Returns stream elements as scala.collection.immutable.Vector

Inherited from
_toScala
Source
_toScala.scala
inline def tuple10: (A, A, A, A, A, A, A, A, A, A)

Convert to Tuple10

Convert to Tuple10

If Stream has less then 10 elements, the operation will fail.

Inherited from
_toTuple
Source
_toTuple.scala
inline def tuple11: (A, A, A, A, A, A, A, A, A, A, A)

Convert to Tuple11

Convert to Tuple11

If Stream has less then 11 elements, the operation will fail.

Inherited from
_toTuple
Source
_toTuple.scala
inline def tuple12: (A, A, A, A, A, A, A, A, A, A, A, A)

Convert to Tuple12

Convert to Tuple12

If Stream has less then 12 elements, the operation will fail.

Inherited from
_toTuple
Source
_toTuple.scala
inline def tuple13: (A, A, A, A, A, A, A, A, A, A, A, A, A)

Convert to Tuple13

Convert to Tuple13

If Stream has less then 13 elements, the operation will fail.

Inherited from
_toTuple
Source
_toTuple.scala
inline def tuple14: (A, A, A, A, A, A, A, A, A, A, A, A, A, A)

Convert to Tuple14

Convert to Tuple14

If Stream has less then 14 elements, the operation will fail.

Inherited from
_toTuple
Source
_toTuple.scala
inline def tuple15: (A, A, A, A, A, A, A, A, A, A, A, A, A, A, A)

Convert to Tuple15

Convert to Tuple15

If Stream has less then 15 elements, the operation will fail.

Inherited from
_toTuple
Source
_toTuple.scala
inline def tuple16: (A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A)

Convert to Tuple16

Convert to Tuple16

If Stream has less then 16 elements, the operation will fail.

Inherited from
_toTuple
Source
_toTuple.scala
inline def tuple17: (A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A)

Convert to Tuple17

Convert to Tuple17

If Stream has less then 17 elements, the operation will fail.

Inherited from
_toTuple
Source
_toTuple.scala
inline def tuple18: (A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A)

Convert to Tuple18

Convert to Tuple18

If Stream has less then 18 elements, the operation will fail.

Inherited from
_toTuple
Source
_toTuple.scala
inline def tuple19: (A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A)

Convert to Tuple19

Convert to Tuple19

If Stream has less then 19 elements, the operation will fail.

Inherited from
_toTuple
Source
_toTuple.scala
inline def tuple2: (A, A)

Convert to Tuple2

Convert to Tuple2

If Stream has less then 2 elements, the operation will fail.

Inherited from
_toTuple
Source
_toTuple.scala
inline def tuple20: (A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A)

Convert to Tuple20

Convert to Tuple20

If Stream has less then 20 elements, the operation will fail.

Inherited from
_toTuple
Source
_toTuple.scala
inline def tuple21: (A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A)

Convert to Tuple21

Convert to Tuple21

If Stream has less then 21 elements, the operation will fail.

Inherited from
_toTuple
Source
_toTuple.scala
inline def tuple22: (A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A)

Convert to Tuple22

Convert to Tuple22

If Stream has less then 22 elements, the operation will fail.

Inherited from
_toTuple
Source
_toTuple.scala
inline def tuple3: (A, A, A)

Convert to Tuple3

Convert to Tuple3

If Stream has less then 3 elements, the operation will fail.

Inherited from
_toTuple
Source
_toTuple.scala
inline def tuple4: (A, A, A, A)

Convert to Tuple4

Convert to Tuple4

If Stream has less then 4 elements, the operation will fail.

Inherited from
_toTuple
Source
_toTuple.scala
inline def tuple5: (A, A, A, A, A)

Convert to Tuple5

Convert to Tuple5

If Stream has less then 5 elements, the operation will fail.

Inherited from
_toTuple
Source
_toTuple.scala
inline def tuple6: (A, A, A, A, A, A)

Convert to Tuple6

Convert to Tuple6

If Stream has less then 6 elements, the operation will fail.

Inherited from
_toTuple
Source
_toTuple.scala
inline def tuple7: (A, A, A, A, A, A, A)

Convert to Tuple7

Convert to Tuple7

If Stream has less then 7 elements, the operation will fail.

Inherited from
_toTuple
Source
_toTuple.scala
inline def tuple8: (A, A, A, A, A, A, A, A)

Convert to Tuple8

Convert to Tuple8

If Stream has less then 8 elements, the operation will fail.

Inherited from
_toTuple
Source
_toTuple.scala
inline def tuple9: (A, A, A, A, A, A, A, A, A)

Convert to Tuple9

Convert to Tuple9

If Stream has less then 9 elements, the operation will fail.

Inherited from
_toTuple
Source
_toTuple.scala