ArrValueN
An immutable Arr of homogeneous value products. Currently there is no compelling use case for heterogeneous value products, but the homogeneous name is being used to avoid having to change the name if and when homogeneous value product Arrs are implemented.
Attributes
- Graph
-
- Supertypes
-
trait SeqLikeValueN[A]trait ArrNoParam[A]trait Arr[A]trait Sequ[A]trait SeqLike[A]class AnyShow all
- Known subtypes
-
trait ArrDblN[A]class LineSegLLArrclass LineSegArrtrait ArrDbl1[A]class Anglestrait ArrDbl2[A]class LatLongArrclass Pt2Arrclass PtM2Arrclass Vec2Arrclass Vec2MArrclass MyDbl2Arrtrait ArrDbl3[A]class Pt3Arrclass PtM3Arrtrait ArrDbl5[A]trait ArrDbl6[A]class LineSegM3Arrtrait ArrDbl7[A]class CurveSegDiststrait Dbl4Arr[A]class LineSegM2Arrtrait ArrIntN[A]trait ArrInt1[A]class HStepArrclass HStepLikeArrclass HVDirnArrclass SqStepArrclass Colourstrait ArrInt2[A]class HCenArrclass HCoordArrclass HSepArrclass HVertArrclass SqCenArrclass SqCoordArrclass SqVertArrtrait ArrInt3[A]class HCenRowArrclass HCenStepArrclass HStepCenArrclass HvOffsetArrclass SqCenStepArrtrait ArrInt4[A]class LineSegHCArrclass LineSegSCArrtrait ArrInt5[A]trait ArrInt6[A]class LineSegHvOffsetArrtrait ArrLongN[A]trait ArrLong1[A]Show all
Members list
Value members
Concrete methods
Find the index of the the first value of this sequence.
Find the index of the the first value of this sequence.
Attributes
The number of product elements in this collection. For example in a [[PolygonImp], this is the number of Pt2s in the Polygon
The number of product elements in this collection. For example in a [[PolygonImp], this is the number of Pt2s in the Polygon
Attributes
- Definition Classes
Inherited methods
append. appends element to this Arr.
Accesses the defining sequence element by a 0 based index.
The total number of atomic values, Ints, Doubles, Longs etc in the backing Array.
The total number of atomic values, Ints, Doubles, Longs etc in the backing Array.
Attributes
- Inherited from:
- SeqLikeValueN
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
Returns true if this sequence contains a value equal to the parameter value. The passed vvalue for equivlence testing an be a super type of the collection type.
Returns true if this sequence contains a value equal to the parameter value. The passed vvalue for equivlence testing an be a super type of the collection type.
Attributes
- Inherited from:
- Sequ
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
Attributes
- Inherited from:
- ArrNoParam
Attributes
- Inherited from:
- ArrNoParam
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
- Inherited from:
- SeqLikeValueN
The element String allows the composition of toString for the whole collection. The syntax of the output will be reworked.
Tests if the condition exists for any element of this sequence.
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
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
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
Attributes
- Inherited from:
- Sequ
Attributes
- Inherited from:
- Sequ
Attributes
- Inherited from:
- Sequ
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
Attributes
- Inherited from:
- Sequ
Attributes
- Inherited from:
- Sequ
Folds over this sequence starting with the initial value
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
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
The first element of this sequence.
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
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
Attributes
- Inherited from:
- Arr
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 sub classes.
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 sub classes.
Attributes
- Inherited from:
- Sequ
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 sub classes.
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 sub classes.
Attributes
- Inherited from:
- Sequ
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
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
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
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 sub classes.
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 sub classes.
Attributes
- Inherited from:
- Sequ
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 sub classes.
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 sub classes.
Attributes
- Inherited from:
- Sequ
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
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
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
Attributes
- Inherited from:
- ArrNoParam
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
The last element of this sequence.
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
Just a handy short cut to give the length of this collection as a string.
Just a handy short cut to give the length of this collection as a string.
Attributes
- Inherited from:
- Sequ
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
Maps to an Array.
maps from A to EMon[B], collects the good values.
Map from A => EMon[B]. There is a name overload that implicitly takes a narrower BuilderArrMap as the second parameter list.
Map from A => EMon[B]. There is a name overload that implicitly takes a narrower BuilderArrMap as the second parameter list.
Attributes
- Inherited from:
- Sequ
Map from A => EMon[B]. implicitly takes a BuilderArrMap. There is a name overload that explicitly takes a more flexible BuilderCollMap as the first parameter list.
Map from A => EMon[B]. implicitly takes a BuilderArrMap. There is a name overload that explicitly takes a more flexible BuilderCollMap as the first parameter list.
Attributes
- Inherited from:
- Sequ
maps ValueProduct collection to List
Specialised map to an immutable PairArrFinalA1 of B. Applies the supplied function to every element of this sequence.
Specialised map to an immutable PairArrFinalA1 of B. Applies the supplied function to every element of this sequence.
Attributes
- Inherited from:
- Sequ
Attributes
- Inherited from:
- Sequ
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
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
Not sure about this method.
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
Is this sequence non empty?
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
Attributes
- Inherited from:
- ArrNoParam
Replaces all instances of the old value with the new value.
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
Reverses the order of the elements of this sequence.
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
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
Sets / mutates an element in the Arr. 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. This method should rarely be needed by end users, but is used by the initialisation and factory methods.
Attributes
- Inherited from:
- SeqLike
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:
- SeqLike
Sums aaccumulating the results of the A => Int function.
Attributes
- Inherited from:
- ArrNoParam
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
foldLeft over the tail of this sequence.
Converts this SeqGen to a list.
Attributes
- Inherited from:
- Sequ
Attributes
- Inherited from:
- Sequ
Attributes
- Inherited from:
- Sequ
Attributes
- Inherited from:
- Sequ
Attributes
- Inherited from:
- Sequ
String specifying the type of this object.
This method should rarely be needed to be used by end users, but returns a new uninitialised SeqSpec of the this Arr's final type.
This method should rarely be needed to be used by end users, but returns a new uninitialised SeqSpec of the this Arr's final type.
Attributes
- Inherited from:
- ArrNoParam
Attributes
- Inherited from:
- Arr
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
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
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
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