ArrDbl6

ostrat.ArrDbl6
trait ArrDbl6[A <: Dbl6Elem] extends ArrDblN[A], SeqLikeImutDbl6[A]

A specialised immutable, flat Array[Double] based collection of a type of Dbl6Elems.

Attributes

Graph
Supertypes
trait SeqLikeImutDbl6[A]
trait SeqLikeDbl6[A]
trait ArrDblN[A]
trait ArrValueN[A]
trait ArrNoParam[A]
trait Arr[A]
trait Sequ[A]
trait SeqLikeImutDblN[A]
trait SpecialT
trait SeqLikeBacked[A]
trait SeqLikeValueN[A]
trait SeqLike[A]
class Any
Show all
Known subtypes
trait ArrLSegDbl6[VT, A]
class LineSegM3Arr

Members list

Type members

Inherited and Abstract types

type ThisT <: ArrDblN[A]

Gives the final type of this class.

Gives the final type of this class.

Attributes

Inherited from:
ArrDblN

Value members

Concrete methods

final inline def +%(operand: A): ThisT
def apply(index: Int): A

Accesses the defining sequence element by a 0 based index.

Accesses the defining sequence element by a 0 based index.

Attributes

def foreachArr(f: DblArr => Unit): Unit

Not sure about this method.

Not sure about this method.

Attributes

def head1: Double
def head2: Double
def head3: Double
def head4: Double
def head5: Double
def head6: Double
final override def length: Int

The number of product elements in this collection. For example in a PolygonGen, this is the number of Pt2s in the Polygon

The number of product elements in this collection. For example in a PolygonGen, this is the number of Pt2s in the Polygon

Attributes

Definition Classes

Inherited methods

def alphaNatMatch(code: String)(f: A => String): A

Partitions the code and element's Strings into an alphabetic String and a natural number. First matches onth on the alphabetic and then for results that match the same number of letters, it matches on the numbers.

Partitions the code and element's Strings into an alphabetic String and a natural number. First matches onth on the alphabetic and then for results that match the same number of letters, it matches on the numbers.

Attributes

Inherited from:
Sequ
final def arrayAppend(operand: ThisT): Array[Double]

Attributes

Inherited from:
ArrDblN
final def arrayLen: Int

The length of the backing Array Double.

The length of the backing Array Double.

Attributes

Inherited from:
ArrayDblBacked
def bestOfGet(init: A)(f1: A => Boolean)(f2: (A, A) => Boolean): A

Attributes

Inherited from:
Sequ
def collect[B, BB <: Arr[B]](pf: PartialFunction[A, B])(using ev: BuilderArrMap[B, BB]): BB

Collects values of B by applying partial function to only those elements of A, for which the PartialFunction is defined.

Collects values of B by applying partial function to only those elements of A, for which the PartialFunction is defined.

Attributes

Inherited from:
Sequ
def contains[A1 >: A](elem: A1): Boolean

Returns true if this sequence contains a value equal to the parameter value. The passed value for equivalence testing can be a super type of the element type.

Returns true if this sequence contains a value equal to the parameter value. The passed value for equivalence testing can be a super type of the element type.

Attributes

Inherited from:
Sequ
def cycleGet(index: Int): A

Applies an index to this ArrayLike collection which cycles back to element 0, when it reaches the end of the collection. Accepts even negative integers as an index value without throwing an exception.

Applies an index to this ArrayLike collection which cycles back to element 0, when it reaches the end of the collection. Accepts even negative integers as an index value without throwing an exception.

Attributes

Inherited from:
Sequ
final override def drop(n: Int): ThisT

Returns new Arr with the first N elements dropped.

Returns new Arr with the first N elements dropped.

Attributes

Definition Classes
Inherited from:
ArrDblN
final override def dropRight(n: Int): ThisT

Returns new Arr with the last N elements dropped.

Returns new Arr with the last N elements dropped.

Attributes

Definition Classes
Inherited from:
ArrDblN
final def elem(index: Int): A

Accesses the specifying sequence element by a 0 based index. For Sequs this will an alternative name for apply.

Accesses the specifying sequence element by a 0 based index. For Sequs this will an alternative name for apply.

Attributes

Inherited from:
SeqLikeImutDbl6
final override def elemEq(a1: A, a2: A): Boolean

Checks if 2 values of the specifying sequence are equal.

Checks if 2 values of the specifying sequence are equal.

Attributes

Definition Classes
Inherited from:
SeqLikeDbl6
final override def elemProdSize: Int

The number of atomic values, Ints, Doubles, Longs etc that specify / construct an element of this immutable flat Array based collection class.

The number of atomic values, Ints, Doubles, Longs etc that specify / construct an element of this immutable flat Array based collection class.

Attributes

Definition Classes
Inherited from:
SeqLikeDbl6
override def elemsStr: String

The element String allows the composition of toString for the whole collection. The syntax of the output will be reworked.

The element String allows the composition of toString for the whole collection. The syntax of the output will be reworked.

Attributes

Definition Classes
Inherited from:
Sequ
def empty: Boolean

Is this sequence empty?

Is this sequence empty?

Attributes

Inherited from:
Sequ
def exists(f: A => Boolean): Boolean

Tests if the condition exists for any element of this sequence.

Tests if the condition exists for any element of this sequence.

Attributes

Inherited from:
Sequ
def existsCount(f: A => Boolean): Int

Counts the number of elements that fulfil the condition A => Boolean

Counts the number of elements that fulfil the condition A => Boolean

Attributes

Inherited from:
Sequ
def fElemStr: A => String

String for element, can be overridden.

String for element, can be overridden.

Attributes

Inherited from:
SeqLike
def fMax[B](defaultValue: B)(f: A => B)(using cmp: Ordering[B]): B

Gives the maximum value of type B, produced by applying the function from A to B on each element of this collection, or the default value if the collection is empty.

Gives the maximum value of type B, produced by applying the function from A to B on each element of this collection, or the default value if the collection is empty.

Attributes

Inherited from:
Sequ
def fMin[B](defaultValue: B)(f: A => B)(using cmp: Ordering[B]): B

Gives the minimum value of type B, produced by applying the function from A to B on each element of this collection, or the default value if the collection is empty.

Gives the minimum value of type B, produced by applying the function from A to B on each element of this collection, or the default value if the collection is empty.

Attributes

Inherited from:
Sequ
final def filter(f: A => Boolean): ThisT

Attributes

Inherited from:
ArrDblN
def filter[ArrA <: Arr[A]](f: A => Boolean)(using ev: BuilderArrMap[A, ArrA]): ArrA

Attributes

Inherited from:
Sequ
def filterNot[ArrA <: Arr[A]](f: A => Boolean)(using ev: BuilderArrMap[A, ArrA]): ArrA

Attributes

Inherited from:
Sequ
def filterToList(f: A => Boolean): List[A]

Attributes

Inherited from:
Sequ
def find(f: A => Boolean): Option[A]

Tries to find te first element of this sequence conforming to the predicate.

Tries to find te first element of this sequence conforming to the predicate.

Attributes

Inherited from:
Sequ
def findIndex(value: A): OptInt

Find the index of the first value of this sequence.

Find the index of the first value of this sequence.

Attributes

Inherited from:
ArrValueN
def findSucc[E <: Throwable, B](f: A => ErrBi[E, B]): ErrBi[ExcNotFound.type, B]

Takes a function that returns an ErrBi and returns the first Succ.

Takes a function that returns an ErrBi and returns the first Succ.

Attributes

Inherited from:
Sequ
def flatMap[ArrB <: Arr[_]](f: A => ArrB)(using ev: BuilderArrFlat[ArrB]): ArrB

Specialised flatMap to a Arr.

Specialised flatMap to a Arr.

Attributes

Inherited from:
Sequ
def flatMapErrBiAcc[E <: Throwable, B, BB](f: A => ErrBiAcc[E, B])(using ctE: ClassTag[E], ctB: ClassTag[B]): ErrBiAcc[E, B]

flatMaps each element to an ErrBiAcc accumulating successes and errors.

flatMaps each element to an ErrBiAcc accumulating successes and errors.

Attributes

Inherited from:
Sequ
def flatToIterableMap[B, ArrB <: Arr[B]](f: A => Iterable[B])(using ev: BuilderArrMap[B, ArrB]): ArrB

Maps over a function from A to any Iterable and flattens the result into an RArr[A].

Maps over a function from A to any Iterable and flattens the result into an RArr[A].

Attributes

Inherited from:
Sequ
def foldHeadTail[B](initVal: B)(f: A => B, fAcc: (B, B) => B): B

Attributes

Inherited from:
Sequ
def foldLeft[B](f: (B, A) => B)(using ev: DefaultValue[B]): B

Attributes

Inherited from:
Sequ
def foldLeft[B](initial: B)(f: (B, A) => B): B

Folds over this sequence starting with the initial value

Folds over this sequence starting with the initial value

Attributes

Inherited from:
Sequ
def foldWithPrevious[B](initPrevious: A, initAcc: B)(f: (B, A, A) => B): B

Attributes

Inherited from:
ArrValueN
def forAll(p: A => Boolean): Boolean

Returns true if the predicate holds true for all values of this sequence, else retruns false.

Returns true if the predicate holds true for all values of this sequence, else retruns false.

Attributes

Inherited from:
Sequ
def foreach[U](f: A => U): Unit

Performs a side effecting function on each element of this sequence in order. 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.

Performs a side effecting function on each element of this sequence in order. 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.

Attributes

Inherited from:
Sequ
def head: A

The first element of this sequence.

The first element of this sequence.

Attributes

Inherited from:
Sequ
def headFold[B](noHead: => B)(ifHead: A => B): B

Folds over the non-existence / existence of a head element. The first parameter is a value for an empty sequence, the second parameter passed as a separate parameter list is a function on the head element.

Folds over the non-existence / existence of a head element. The first parameter is a value for an empty sequence, the second parameter passed as a separate parameter list is a function on the head element.

Attributes

Inherited from:
Sequ
def headFoldToString[B](noHead: => String): String

Folds over the non-existence / existence of a head element. If the sequence is nonEmpty applies toString to head element else returns the noHead parameter string.

Folds over the non-existence / existence of a head element. If the sequence is nonEmpty applies toString to head element else returns the noHead parameter string.

Attributes

Inherited from:
Sequ
def headOption: Option[A]

Returns the Some of the first element unless the sequence is empty in which case it returns None.

Returns the Some of the first element unless the sequence is empty in which case it returns None.

Attributes

Inherited from:
Sequ
def headOrNone: Any

Attributes

Inherited from:
Arr
def iFlatMap[ArrB <: Arr[_]](iInit: Int)(f: (Int, A) => ArrB)(using build: BuilderArrFlat[ArrB]): ArrB

Index with element flatMap. Applies the parameter function to the index and each respective element of this sequence. The function returns a Arr of elements of type B and the method as a whole flattens and then returns the specialised Arr of type B. 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. Ideally this method should be overridden in subclasses.

Index with element flatMap. Applies the parameter function to the index and each respective element of this sequence. The function returns a Arr of elements of type B and the method as a whole flattens and then returns the specialised Arr of type B. 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. Ideally this method should be overridden in subclasses.

Attributes

Inherited from:
Sequ
def iFlatMap[ArrB <: Arr[_]](f: (Int, A) => ArrB)(using build: BuilderArrFlat[ArrB]): ArrB

Index with element flatMap. Applies the parameter function to the index and each respective element of this sequence. The function returns a Arr of elements of type B and the method as a whole flattens and then returns the specialised Arr of type B. 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. Ideally this method should be overridden in subclasses.

Index with element flatMap. Applies the parameter function to the index and each respective element of this sequence. The function returns a Arr of elements of type B and the method as a whole flattens and then returns the specialised Arr of type B. 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. Ideally this method should be overridden in subclasses.

Attributes

Inherited from:
Sequ
def iForAll(p: (Int, A) => Boolean): Boolean

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.

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

Inherited from:
Sequ
def iForeach[U](startIndex: Int)(f: (Int, A) => U): Unit

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

Inherited from:
Sequ
def iForeach[U](f: (Int, A) => U): Unit

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

Inherited from:
Sequ
def iMap[B, ArrB <: Arr[B]](startindex: Int)(f: (Int, A) => B)(using ev: BuilderArrMap[B, ArrB]): ArrB

Index with element map. Applies the parameter function to the index and each respective element of this sequence. The function returns an element of type B and the method as a whole returns the specialised Arr of type B. 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. Ideally this method should be overridden in subclasses.

Index with element map. Applies the parameter function to the index and each respective element of this sequence. The function returns an element of type B and the method as a whole returns the specialised Arr of type B. 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. Ideally this method should be overridden in subclasses.

Attributes

Inherited from:
Sequ
def iMap[B, ArrB <: Arr[B]](f: (Int, A) => B)(using ev: BuilderArrMap[B, ArrB]): ArrB

Index with element map. Applies the parameter function to the index and each respective element of this sequence. The function returns an element of type B and the method as a whole returns the specialised Arr of type B. 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. This method should be overridden in subclasses.

Index with element map. Applies the parameter function to the index and each respective element of this sequence. The function returns an element of type B and the method as a whole returns the specialised Arr of type B. 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. This method should be overridden in subclasses.

Attributes

Inherited from:
Sequ
def ifHead[U](f: A => U): Unit

if this Sequ is nonEmpty performs the side effecting function on the head. If empty procedure is applied.

if this Sequ is nonEmpty performs the side effecting function on the head. If empty procedure is applied.

Attributes

Inherited from:
Sequ
def indexCycle(index: Int): A

like the apply method accesses the defining sequence element by a 0 based index, but cycles around for indexes less that 0 and equal or greater than index length.

like the apply method accesses the defining sequence element by a 0 based index, but cycles around for indexes less that 0 and equal or greater than index length.

Attributes

Inherited from:
Sequ
def indexMapTo[B, BB <: SeqLikeBacked[B]](iFrom: Int, iTo: Int, iStep: Int)(f: A => B)(using build: BuilderMapSeqLike[B, BB]): BB

A map operation on the range of indexed values, where the return type of the SeqLike is explicitly given by the first parameter.

A map operation on the range of indexed values, where the return type of the SeqLike is explicitly given by the first parameter.

Attributes

Inherited from:
Sequ
def indexOf(elem: A): Int

Attributes

Inherited from:
Sequ
def indexToForeach[U](iFrom: Int, iTo: Int, iStep: Int)(f: A => U): Unit

Performs a side effecting function on each element of the range of index values for this sequence in order. 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.

Performs a side effecting function on each element of the range of index values for this sequence in order. 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.

Attributes

Inherited from:
Sequ
def indexWhere(f: A => Boolean): Int

Return the index of the first element where predicate is true, or -1 if predicate not true forall.

Return the index of the first element where predicate is true, or -1 if predicate not true forall.

Attributes

Inherited from:
Sequ
final def init: ThisT

Returns new Arr without the last element.

Returns new Arr without the last element.

Attributes

Inherited from:
ArrNoParam
def initForeach[U](f: A => U): Unit

Performs a side effecting function on each element of this sequence excluding the last. 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.

Performs a side effecting function on each element of this sequence excluding the last. 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.

Attributes

Inherited from:
Sequ
def initLastMap[B, ArrB <: Arr[B]](fInit: A => B)(fLast: A => B)(using build: BuilderArrMap[B, ArrB]): ArrB

Specialised map to an immutable Arr of B. But takes 2 functions. Applies the first supplied function to every element of the init of this sequence and the second is applied to the last element if there is one.

Specialised map to an immutable Arr of B. But takes 2 functions. Applies the first supplied function to every element of the init of this sequence and the second is applied to the last element if there is one.

Attributes

Inherited from:
Sequ
def last: A

The last element of this sequence.

The last element of this sequence.

Attributes

Inherited from:
Sequ
def lastFold[B](noLast: => B)(ifLast: A => B): B

Folds over the non-existence / existence of a last element. The first parameter is a value for an empty sequence, the second parameter passed as a separate parameter list is a function on the last element.

Folds over the non-existence / existence of a last element. The first parameter is a value for an empty sequence, the second parameter passed as a separate parameter list is a function on the last element.

Attributes

Inherited from:
Sequ
def lastOption: Option[A]

Returns the Some of the last element unless the sequence is empty in which case it returns None.

Returns the Some of the last element unless the sequence is empty in which case it returns None.

Attributes

Inherited from:
Sequ
def lenStr: String

Just a handy shortcut to give the length of this collection as a string.

Just a handy shortcut to give the length of this collection as a string.

Attributes

Inherited from:
Sequ
def map[B, ArrB <: Arr[B]](f: A => B)(using build: BuilderArrMap[B, ArrB]): ArrB

Specialised map to an immutable Arr of B. Applies the supplied function to every element of this sequence.

Specialised map to an immutable Arr of B. Applies the supplied function to every element of this sequence.

Attributes

Inherited from:
Sequ
def map2To1[B, ArrB <: Arr[B]](f: (A, A) => B)(using ev: BuilderArrMap[B, ArrB]): ArrB

map 2 elements of A to 1 element of B. Ignores the last element on a collection of odd numbered length.

map 2 elements of A to 1 element of B. Ignores the last element on a collection of odd numbered length.

Attributes

Inherited from:
Sequ
def mapArray[B](f: A => B)(using ct: ClassTag[B]): Array[B]

Maps to an Array.

Maps to an Array.

Attributes

Inherited from:
Sequ
def mapCollectSuccs[B, BB <: Arr[B]](f: A => ErrBi[_, B])(using ev: BuilderArrMap[B, BB]): BB

maps from A to ErrBi[B], collects the successful values.

maps from A to ErrBi[B], collects the successful values.

Attributes

Inherited from:
Sequ
def mapErrBi[E <: Throwable, B, BB](ev: BuilderMap[B, BB])(f: A => ErrBi[E, B]): ErrBi[E, BB]

Map from A => ErrBi[E, B]. There is a name overload that usingly takes a narrower BuilderArrMap as the second parameter list.

Map from A => ErrBi[E, B]. There is a name overload that usingly takes a narrower BuilderArrMap as the second parameter list.

Attributes

Inherited from:
Sequ
def mapErrBi[E <: Throwable, B, ArrB <: Arr[B]](f: A => ErrBi[E, B])(using ev: BuilderArrMap[B, ArrB]): ErrBi[E, ArrB]

Map from A => ErrBi[E, B]. Returns a successful Arr of B as long as the function produces no errors, in which case it returns a Fail of the first error encountered usingly takes a BuilderArrMap. There is a name overload that explicitly takes a more flexible BuilderMap as the first parameter list.

Map from A => ErrBi[E, B]. Returns a successful Arr of B as long as the function produces no errors, in which case it returns a Fail of the first error encountered usingly takes a BuilderArrMap. There is a name overload that explicitly takes a more flexible BuilderMap as the first parameter list.

Attributes

Inherited from:
Sequ
def mapErrBiAcc[E <: Throwable, B, BB](f: A => ErrBi[E, B])(using ctE: ClassTag[E], ctB: ClassTag[B]): ErrBiAcc[E, B]

maps each element to an ErrBi accumulating successes and errors.

maps each element to an ErrBi accumulating successes and errors.

Attributes

Inherited from:
Sequ
def mapErrBiList[E <: Throwable, B](f: A => ErrBi[E, B]): ErrBi[E, List[B]]

Map from A => B, returning an ErrBi of List.

Map from A => B, returning an ErrBi of List.

Attributes

Inherited from:
Sequ
def mapList[B <: AnyRef](f: A => B): List[B]

maps this Sequ to a List

maps this Sequ to a List

Attributes

Inherited from:
Sequ
def mapPair[B1, ArrB1 <: Arr[B1], B2, B <: PairFinalA1Elem[B1, B2], ArrB <: ArrPairFinalA1[B1, ArrB1, B2, B]](f1: A => B1)(f2: A => B2)(using build: BuilderMapArrPair[B1, ArrB1, B2, B, ArrB]): ArrB

Specialised map to an immutable ArrPairFinalA1 of B. Applies the supplied function to every element of this sequence.

Specialised map to an immutable ArrPairFinalA1 of B. Applies the supplied function to every element of this sequence.

Attributes

Inherited from:
Sequ
def mapTo[B, BB <: SeqLikeBacked[B]](build: BuilderMapSeqLike[B, BB])(f: A => B): BB

A map operation where the return type of the SeqLike is explicitly given by the second type parameter.

A map operation where the return type of the SeqLike is explicitly given by the second type parameter.

Attributes

Inherited from:
Sequ
def mapUniqueSucc[B](f: A => ErrBi[_, B]): ErrBi[ExcFind, B]

Takes a function from A to ErrBi[?, B]. If the function applied to each element produces a single Good, it is returned else returns Bad.

Takes a function from A to ErrBi[?, B]. If the function applied to each element produces a single Good, it is returned else returns Bad.

Attributes

Inherited from:
Sequ
def mapWithAcc[B, ArrB <: Arr[B], C](initC: C)(f: (C, A) => (B, C))(using ev: BuilderArrMap[B, ArrB]): ArrB

Maps from A to B like normal map,but has an additional accumulator of type C that is discarded once the traversal is completed. 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.

Maps from A to B like normal map,but has an additional accumulator of type C that is discarded once the traversal is completed. 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

Inherited from:
Sequ
def max[B >: A](using ord: Ordering[B]): A

Gives the maximum value of this sequence according to the implicit ordering type class instance, which can be passed explicitly.

Gives the maximum value of this sequence according to the implicit ordering type class instance, which can be passed explicitly.

Attributes

Inherited from:
Sequ
def min[B >: A](using ord: Ordering[B]): A

Gives the minimum value of this sequence according to the implicit ordering type class instance, which can be passed explicitly.

Gives the minimum value of this sequence according to the implicit ordering type class instance, which can be passed explicitly.

Attributes

Inherited from:
Sequ
def mkStr(f: A => String, separator: String): String

Applies the function to convert each element to a String and then appends them with the separator. There is a name overload which uses toString to replace the first parameter.

Applies the function to convert each element to a String and then appends them with the separator. There is a name overload which uses toString to replace the first parameter.

Attributes

Inherited from:
Sequ
def mkStr(separator: String): String

Applies toString to each element and appends them with given separator. There ia name overload where the first paremter is a function to convert the elements into Strings.

Applies toString to each element and appends them with given separator. There ia name overload where the first paremter is a function to convert the elements into Strings.

Attributes

Inherited from:
Sequ
def mkStrCommas(fToStr: A => String): String

Make a String using comma-space as separators.

Make a String using comma-space as separators.

Attributes

Inherited from:
Sequ
def mkStrJustCommas(fToStr: A => String): String

Make a String using just commas no spaces as separators.

Make a String using just commas no spaces as separators.

Attributes

Inherited from:
Sequ
def mkStrSemis(fToStr: A => String): String

Make a String using semicolon-space as separators.

Make a String using semicolon-space as separators.

Attributes

Inherited from:
Sequ
def modifyAll(pred: A => Boolean, fNewValue: A => A): ThisT

Modifies all instances of the old value that fulfill predicate, with a new value by applying the parameter function.

Modifies all instances of the old value that fulfill predicate, with a new value by applying the parameter function.

Attributes

Inherited from:
ArrNoParam
def mutateElemUnsafe(index: Int, f: A => A): Unit

Mutates an element in the Arr at the given index. This method should rarely be needed by end users, but is used by the initialisation and factory methods.

Mutates an element in the Arr at the given index. This method should rarely be needed by end users, but is used by the initialisation and factory methods.

Attributes

Inherited from:
SeqLikeBacked

Is this sequence non-empty?

Is this sequence non-empty?

Attributes

Inherited from:
Sequ
final override def numElems: Int

The number of data elements in the defining sequence. These collections use underlying mutable Arrays and ArrayBuffers. The length of the underlying Array will be a multiple of this number. For Sequs this will be an alternative name for length.

The number of data elements in the defining sequence. These collections use underlying mutable Arrays and ArrayBuffers. The length of the underlying Array will be a multiple of this number. For Sequs this will be an alternative name for length.

Attributes

Definition Classes
Inherited from:
SeqLikeImutDbl6
def optAllMap[B, ArrB <: Arr[B]](f: A => Option[B])(using build: BuilderArrMap[B, ArrB]): Option[ArrB]

Takes a map function from A to Option[B] but only returns the Arr of B if all the elements map to a Some. Hence, the ArrB if returned will be the same length as this sequence.

Takes a map function from A to Option[B] but only returns the Arr of B if all the elements map to a Some. Hence, the ArrB if returned will be the same length as this sequence.

Attributes

Inherited from:
Sequ
def optMap[B, ArrB <: Arr[B]](f: A => Option[B])(using build: BuilderArrMap[B, ArrB]): ArrB

Specialised opt map to an immutable Arr of B. Applies the supplied function to every element of this sequence.

Specialised opt map to an immutable Arr of B. Applies the supplied function to every element of this sequence.

Attributes

Inherited from:
Sequ
def partition[ArrA <: Arr[A]](f: A => Boolean)(using build: BuilderArrMap[A, ArrA]): (ArrA, ArrA)

Attributes

Inherited from:
Sequ
def removeFirst(f: A => Boolean): ThisT

Attributes

Inherited from:
ArrNoParam
def replace(oldValue: A, newValue: A): ThisT

Replaces all instances of the old value with the new value.

Replaces all instances of the old value with the new value.

Attributes

Inherited from:
ArrNoParam
def replaceAll(pred: A => Boolean, newValue: A): ThisT

Replaces all instances of the old value that fulfill predicate with the new value.

Replaces all instances of the old value that fulfill predicate with the new value.

Attributes

Inherited from:
ArrNoParam

Method for keeping the typer happy when returning this as an instance of ThisT.

Method for keeping the typer happy when returning this as an instance of ThisT.

Attributes

Inherited from:
Sequ
final def reverse: ThisT

Reverses the order of the elements of this sequence.

Reverses the order of the elements of this sequence.

Attributes

Inherited from:
ArrDblN
def reverseForeach[U](f: A => U): Unit

Performs a side effecting function on each element of this sequence in reverse order. 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.

Performs a side effecting function on each element of this sequence in reverse order. 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.

Attributes

Inherited from:
Sequ
def reverseIForeach[U](f: (Int, A) => U): Unit

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.

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

Inherited from:
Sequ
final override def setElemUnsafe(index: Int, newElem: A): Unit

Sets / mutates an element in the Arr at the given index. This method should rarely be needed by end users, but is used by the initialisation and factory methods.

Sets / mutates an element in the Arr at the given index. This method should rarely be needed by end users, but is used by the initialisation and factory methods.

Attributes

Definition Classes
Inherited from:
SeqLikeImutDbl6
def setElemsUnsafe(index: Int, elems: A*): Unit

Sets / mutates elements in the Arr. This method should rarely be needed by end users, but is used by the initialisation and factory methods.

Sets / mutates elements in the Arr. This method should rarely be needed by end users, but is used by the initialisation and factory methods.

Attributes

Inherited from:
SeqLikeBacked
def sortBy(f: (A, A) => Boolean)(implicit build: BuilderArrMap[A, ThisT]): ThisT

Returns a new Arr sorted from least to greatest. Takes a function determining if the first value is greater than the second.

Returns a new Arr sorted from least to greatest. Takes a function determining if the first value is greater than the second.

Attributes

Inherited from:
Arr
def sumBy(f: A => Double): Double

Sums accumulating the results of the A => Double function.

Sums accumulating the results of the A => Double function.

Attributes

Inherited from:
Sequ
def sumBy(f: A => Int): Int

Sums accumulating the results of the A => Int function.

Sums accumulating the results of the A => Int function.

Attributes

Inherited from:
Sequ
final def tail: ThisT

Returns new Arr without the first element.

Returns new Arr without the first element.

Attributes

Inherited from:
ArrNoParam
def tailForeach[U](f: A => U): Unit

Foreachs over the tail of this sequence. Performs a side effecting function on each element of this sequence excluding the first.

Foreachs over the tail of this sequence. Performs a side effecting function on each element of this sequence excluding the first.

Attributes

Inherited from:
Sequ
def tailfold[B](initial: B)(f: (B, A) => B): B

foldLeft over the tail of this sequence.

foldLeft over the tail of this sequence.

Attributes

Inherited from:
Sequ
def toList: List[A]

Converts this Sequ to a list.

Converts this Sequ to a list.

Attributes

Inherited from:
Sequ
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
SeqLike -> Any
Inherited from:
SeqLike
def toVector: Vector[A]

Attributes

Inherited from:
Sequ
def unsafeSameSize(length: Int): ThisT

Attributes

Inherited from:
SeqLikeImutDblN
def unsafeSetElemSeq(index: Int, elems: Iterable[A]): Unit

Attributes

Inherited from:
Arr
def unsafeSetHead(value: A): Unit

Sets / mutates the head element in the Arr. This method should rarely be needed by end users, but is used by initialisation and factory methods.

Sets / mutates the head element in the Arr. This method should rarely be needed by end users, but is used by initialisation and factory methods.

Attributes

Inherited from:
Arr
def unsafeSetLast(value: A): Unit

Sets / mutates the last element in the Arr. This method should rarely be needed by end users, but is used by initialisation and factory methods.

Sets / mutates the last element in the Arr. This method should rarely be needed by end users, but is used by initialisation and factory methods.

Attributes

Inherited from:
Arr
def zipMap[B, C, ArrC <: Arr[C]](operator: Sequ[B])(f: (A, B) => C)(using ev: BuilderArrMap[C, ArrC]): ArrC

Takes a second collection as a parameter and zips the elements of this collection and the operand collection and applies the specialised map function from type A and type B to type C.

Takes a second collection as a parameter and zips the elements of this collection and the operand collection and applies the specialised map function from type A and type B to type C.

Attributes

Inherited from:
Sequ
def zipMap2[B, C, D, ArrD <: Arr[D]](operator1: Sequ[B], operator2: Sequ[C])(f: (A, B, C) => D)(using ev: BuilderArrMap[D, ArrD]): ArrD

Takes a second collection and third collections as parameters and zips the elements of this collection and the operand collections and applies the specialised map function from type A and type B and type C to type D.

Takes a second collection and third collections as parameters and zips the elements of this collection and the operand collections and applies the specialised map function from type A and type B and type C to type D.

Attributes

Inherited from:
Sequ

Inherited and Abstract methods

Attributes

Inherited from:
ArrayDblBacked
def elemFromDbls(d1: Double, d2: Double, d3: Double, d4: Double, d5: Double, d6: Double): A

Constructs an element of the specifying-sequence from 6 Doubles.

Constructs an element of the specifying-sequence from 6 Doubles.

Attributes

Inherited from:
SeqLikeDbl6
def fromArray(array: Array[Double]): ThisT

Attributes

Inherited from:
SeqLikeImutDblN

String specifying the type of this object.

String specifying the type of this object.

Attributes

Inherited from:
SeqLike