Def
Iterator view
Iterator view
Wraps current stream as scala.collection.Iterator
- Inherited from
- _toScala
- Source
- _toScala.scala
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
Pack elements
Pack elements
Returns stream elements as Pack
- Inherited from
- _toCollections
- Source
- _toCollections.scala
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
Convert to Buffer
Convert to Buffer
Returns stream elements as Buffer
- Inherited from
- _toCollections
- Source
- _toCollections.scala
Convert to Idx
Convert to Idx
Returns stream elements as Idx
- Inherited from
- _toCollections
- Source
- _toCollections.scala
Convert to Java Iterator
Convert to Java Iterator
Wraps current stream as java.util.Iterator
- Inherited from
- _toJava
- Source
- _toJava.scala
Convert to Java List
Convert to Java List
Returns stream elements as java.util.List
- Inherited from
- _toJava
- Source
- _toJava.scala
Convert to Java Spliterator
Convert to Java Spliterator
Wraps current stream as java.util.Spliterator
- Inherited from
- _toJava
- Source
- _toJava.scala
Convert to Java Stream
Convert to Java Stream
Wraps current stream as java.util.stream.Stream
- Inherited from
- _toJava
- Source
- _toJava.scala
Convert to List
Convert to List
Returns stream elements as scala.collection.immutable.List
- Inherited from
- _toScala
- Source
- _toScala.scala
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
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
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
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
Convert to Product
Convert to Product
Returns stream elements as scala.Product
- Inherited from
- _toScala
- Source
- _toScala.scala
Convert to Seq
Convert to Seq
Returns stream elements as scala.collection.immutable.IndexedSeq
- Inherited from
- _toScala
- Source
- _toScala.scala
Convert to unique collection
Convert to unique collection
Returns stream elements as Set
- Inherited from
- _toCollections
- Source
- _toCollections.scala
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
Convert to Vector
Convert to Vector
Returns stream elements as scala.collection.immutable.Vector
- Inherited from
- _toScala
- Source
- _toScala.scala
Convert to Tuple10
Convert to Tuple10
If Stream has less then 10 elements, the operation will fail.
- Inherited from
- _toTuple
- Source
- _toTuple.scala
Convert to Tuple11
Convert to Tuple11
If Stream has less then 11 elements, the operation will fail.
- Inherited from
- _toTuple
- Source
- _toTuple.scala
Convert to Tuple12
Convert to Tuple12
If Stream has less then 12 elements, the operation will fail.
- Inherited from
- _toTuple
- Source
- _toTuple.scala
Convert to Tuple13
Convert to Tuple13
If Stream has less then 13 elements, the operation will fail.
- Inherited from
- _toTuple
- Source
- _toTuple.scala
Convert to Tuple14
Convert to Tuple14
If Stream has less then 14 elements, the operation will fail.
- Inherited from
- _toTuple
- Source
- _toTuple.scala
Convert to Tuple15
Convert to Tuple15
If Stream has less then 15 elements, the operation will fail.
- Inherited from
- _toTuple
- Source
- _toTuple.scala
Convert to Tuple16
Convert to Tuple16
If Stream has less then 16 elements, the operation will fail.
- Inherited from
- _toTuple
- Source
- _toTuple.scala
Convert to Tuple17
Convert to Tuple17
If Stream has less then 17 elements, the operation will fail.
- Inherited from
- _toTuple
- Source
- _toTuple.scala
Convert to Tuple18
Convert to Tuple18
If Stream has less then 18 elements, the operation will fail.
- Inherited from
- _toTuple
- Source
- _toTuple.scala
Convert to Tuple19
Convert to Tuple19
If Stream has less then 19 elements, the operation will fail.
- Inherited from
- _toTuple
- Source
- _toTuple.scala
Convert to Tuple2
Convert to Tuple2
If Stream has less then 2 elements, the operation will fail.
- Inherited from
- _toTuple
- Source
- _toTuple.scala
Convert to Tuple20
Convert to Tuple20
If Stream has less then 20 elements, the operation will fail.
- Inherited from
- _toTuple
- Source
- _toTuple.scala
Convert to Tuple21
Convert to Tuple21
If Stream has less then 21 elements, the operation will fail.
- Inherited from
- _toTuple
- Source
- _toTuple.scala
Convert to Tuple22
Convert to Tuple22
If Stream has less then 22 elements, the operation will fail.
- Inherited from
- _toTuple
- Source
- _toTuple.scala
Convert to Tuple3
Convert to Tuple3
If Stream has less then 3 elements, the operation will fail.
- Inherited from
- _toTuple
- Source
- _toTuple.scala
Convert to Tuple4
Convert to Tuple4
If Stream has less then 4 elements, the operation will fail.
- Inherited from
- _toTuple
- Source
- _toTuple.scala
Convert to Tuple5
Convert to Tuple5
If Stream has less then 5 elements, the operation will fail.
- Inherited from
- _toTuple
- Source
- _toTuple.scala
Convert to Tuple6
Convert to Tuple6
If Stream has less then 6 elements, the operation will fail.
- Inherited from
- _toTuple
- Source
- _toTuple.scala
Convert to Tuple7
Convert to Tuple7
If Stream has less then 7 elements, the operation will fail.
- Inherited from
- _toTuple
- Source
- _toTuple.scala
Convert to Tuple8
Convert to Tuple8
If Stream has less then 8 elements, the operation will fail.
- Inherited from
- _toTuple
- Source
- _toTuple.scala
Convert to Tuple9
Convert to Tuple9
If Stream has less then 9 elements, the operation will fail.
- Inherited from
- _toTuple
- Source
- _toTuple.scala