StepperShape

scala.collection.StepperShape
See theStepperShape companion object
sealed trait StepperShape[-T, S <: Stepper[_]]

An implicit StepperShape instance is used in the IterableOnce.stepper to return a possibly specialized Stepper S according to the element type T.

Type parameters

S

the type of Stepper to use, possibly specialized for primitive types

T

the element type of the collection (may be a primitive or reference type)

Attributes

Companion
object
Source
StepperShape.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
StepperShape[T, S]

Members list

Value members

Abstract methods

Creates an unboxing primitive parallel (i.e. with EfficientSplit) Stepper from a boxed AnyStepper. This is an identity operation for reference shapes.

Creates an unboxing primitive parallel (i.e. with EfficientSplit) Stepper from a boxed AnyStepper. This is an identity operation for reference shapes.

Value parameters

st

the boxed AnyStepper with EfficientSplit capability to convert into a possibly specialized stepper

Attributes

Returns

a parallel Stepper of shape S with EfficientSplit that unboxes elements from st, or st itself for reference shapes

Source
StepperShape.scala
def seqUnbox(st: AnyStepper[T]^): S^{st}

Creates an unboxing primitive sequential Stepper from a boxed AnyStepper. This is an identity operation for reference shapes.

Creates an unboxing primitive sequential Stepper from a boxed AnyStepper. This is an identity operation for reference shapes.

Value parameters

st

the boxed AnyStepper to convert into a possibly specialized stepper

Attributes

Returns

a sequential Stepper of shape S that unboxes elements from st, or st itself for reference shapes

Source
StepperShape.scala
def shape: Shape

Returns the Int constant (as defined in the StepperShape companion object) for this StepperShape.

Returns the Int constant (as defined in the StepperShape companion object) for this StepperShape.

Attributes

Source
StepperShape.scala