HCenArrOpt
An immutable Arr of Opt Tile data for a specific hex tile grid HGrid. This is specialised for OptRef[A]. The tileGrid can map the HCen coordinate of the tile to the index of the Arr. Hence most methods take an implicit HGrid hex grid parameter.
Value members
Concrete methods
Indexes in to this HCenArrOpt using the tile centre coordinate, either passed as an HCen or as row and column values.
Indexes in to this HCenArrOpt using the tile centre coordinate, either passed as an HCen or as row and column values.
Indexes in to this HCenArrOpt using the tile centre coordinate, either passed as an HCen or as row and column values.
Indexes in to this HCenArrOpt using the tile centre coordinate, either passed as an HCen or as row and column values.
maps the HCen Coordinate values to type B, but only where the element is a None value. Returns an immutable Array based collection of type ArrB, the second type parameter.
maps the HCen Coordinate values to type B, but only where the element is a None value. Returns an immutable Array based collection of type ArrB, the second type parameter.
HCen with Some values from 2 HCenArrOpts map to type C. This only maps the values where both collections have Some values. Returns an immutable Array based collection of type ArrC, the second type parameter.
HCen with Some values from 2 HCenArrOpts map to type C. This only maps the values where both collections have Some values. Returns an immutable Array based collection of type ArrC, the second type parameter.
HCen with element flatMap, but only coordinates where there some value. Maps and flattens each HCen coordinate with its associated element of type A. It ignores the None values. 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.
HCen with element flatMap, but only coordinates where there some value. Maps and flattens each HCen coordinate with its associated element of type A. It ignores the None values. 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.
coordinate-foreach-Some. Foreach Some element and its associated HCen coordinate applies the side effecting parameter function. It ignores the None values.
coordinate-foreach-Some. Foreach Some element and its associated HCen coordinate applies the side effecting parameter function. It ignores the None values.
Creates a new ArrOpt with the specified location set to NoRef.
Creates a new ArrOpt with the specified location set to NoRef.
Creates a new ArrOpt with the specified location set to the specified value.
Creates a new ArrOpt with the specified location set to the specified value.
Maps the Somes of this HCenArrOpt and the Some values of a second HCenArrOpt. Returns an immutable Array based collection of type ArrC, the second type parameter.
Maps the Somes of this HCenArrOpt and the Some values of a second HCenArrOpt. Returns an immutable Array based collection of type ArrC, the second type parameter.
Returns an ArrBase[A] of type ArrA filtered to the Some values.
Returns an ArrBase[A] of type ArrA filtered to the Some values.
Accesses element from Refs Arr. Only use this method where you are certain it is not null, or the consumer can deal with the null.
Accesses element from Refs Arr. Only use this method where you are certain it is not null, or the consumer can deal with the null.
Mutates the value ot the specified location to None.
Mutates the value ot the specified location to None.
Sets the Some value of the hex tile data at the specified row and column coordinate values. This is an imperative mutating operation.
Sets the Some value of the hex tile data at the specified row and column coordinate values. This is an imperative mutating operation.
Inherited methods
Maps the this Arr of Opt values, without their respective Hcen coordinates to an Arr of type B. This method treats the HCenArrOpt class like a standard Arr or Array. It does not utilise the grid TGrid from which this TileArrOpt was created.
Maps the this Arr of Opt values, without their respective Hcen coordinates to an Arr of type B. This method treats the HCenArrOpt class like a standard Arr or Array. It does not utilise the grid TGrid from which this TileArrOpt was created.
- Inherited from:
- TileArrOpt
Maps the Some values to type B by the parameter function. It ignores the None values. This method treats the HCenArr class like a standard Arr or Array. It does not utilise the grid TGrid from which this TileArrOpt was created.
Maps the Some values to type B by the parameter function. It ignores the None values. This method treats the HCenArr class like a standard Arr or Array. It does not utilise the grid TGrid from which this TileArrOpt was created.
- Inherited from:
- TileArrOpt