IterableExtensions
Extension methods for Iterable[A].
Attributes
- Graph
-
- Supertypes
-
class AnyValtrait Matchableclass Any
Members list
Value members
Concrete methods
FlatMaps to an Arr of B1, but maps to a single element of B2. The elements of the Arr[B1] are paired with copies of B2. These are logically flattened to a PairArrFinalA1[B1, B2].
FlatMaps to an Arr of B1, but maps to a single element of B2. The elements of the Arr[B1] are paired with copies of B2. These are logically flattened to a PairArrFinalA1[B1, B2].
Attributes
This method and "fHead" removes the need for headOption in the majority of case. Use fHead when are interested in the tail value
This method and "fHead" removes the need for headOption in the majority of case. Use fHead when are interested in the tail value
Attributes
If the collection is nonEmpty, return head of list convert to string or return the defualt string.
If the collection is nonEmpty, return head of list convert to string or return the defualt string.
Attributes
flatMaps over a traversable (collection / sequence) with a counter
flatMaps over a traversable (collection / sequence) with a counter
Attributes
flatMaps over a traversable (collection / sequence) with a counter
flatMaps over a traversable (collection / sequence) with a counter
Attributes
Index with foreach. Performs a side effecting function on the index and each element of this sequence. It takes a function as a parameter. The function may return Unit. If it does return a non Unit value it is discarded. The [U] type parameter is there just to avoid warnings about discarded values and can be ignored by method users. The method has 2 versions / name overloads. The default start for the index is 0 if just the function parameter is passed. The second version name overload takes an Int for the first parameter list, to set the start value of the index. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature.
Index with foreach. Performs a side effecting function on the index and each element of this sequence. It takes a function as a parameter. The function may return Unit. If it does return a non Unit value it is discarded. The [U] type parameter is there just to avoid warnings about discarded values and can be ignored by method users. The method has 2 versions / name overloads. The default start for the index is 0 if just the function parameter is passed. The second version name overload takes an Int for the first parameter list, to set the start value of the index. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature.
Attributes
Index with foreach. Performs a side effecting function on the index and each element of this sequence. It takes a function as a parameter. The function may return Unit. If it does return a non Unit value it is discarded. The [U] type parameter is there just to avoid warnings about discarded values and can be ignored by method users. The method has 2 versions / name overloads. The default start for the index is 0 if just the function parameter is passed. The second version name overload takes an Int for the first parameter list, to set the start value of the index. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature.
Index with foreach. Performs a side effecting function on the index and each element of this sequence. It takes a function as a parameter. The function may return Unit. If it does return a non Unit value it is discarded. The [U] type parameter is there just to avoid warnings about discarded values and can be ignored by method users. The method has 2 versions / name overloads. The default start for the index is 0 if just the function parameter is passed. The second version name overload takes an Int for the first parameter list, to set the start value of the index. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature.
Attributes
Specialised index with map to an immutable ArrBase of B. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature.
Specialised index with map to an immutable ArrBase of B. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature.
Attributes
Specialised index with map to an immutable ArrBase of B. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature.
Specialised index with map to an immutable ArrBase of B. Note the function signature follows the foreach based convention of putting the collection element 2nd or last as seen for example in fold methods' (accumulator, element) => B signature.
Attributes
Checks condition against head. Returns false if the collection is empty.
Checks condition against head. Returns false if the collection is empty.
Attributes
Maps to a PairArrFinalA1 of B1 and B2.