indigo.shared.collections

Members list

Type members

Classlikes

sealed trait Batch[+A]

Batch is a really thin wrapper over js.Array to replace List on the Indigo APIs. Its purpose is to provide fast scene construction and fast conversion back to js.Array for the engine to use. Most operations that require any sort of traversal are performed by flattening the structure and delegated to js.Array. In practice, scene construction is mostly about building the structure, so the penalty is acceptable, and still faster than using List.

Batch is a really thin wrapper over js.Array to replace List on the Indigo APIs. Its purpose is to provide fast scene construction and fast conversion back to js.Array for the engine to use. Most operations that require any sort of traversal are performed by flattening the structure and delegated to js.Array. In practice, scene construction is mostly about building the structure, so the penalty is acceptable, and still faster than using List.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object Batch

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
Batch.type
final case class NonEmptyBatch[A](head: A, tail: Batch[A])

An ordered batch-type object that requires there to always be at least one element present, ruling out the possibility of unsafely accessing the head element.

An ordered batch-type object that requires there to always be at least one element present, ruling out the possibility of unsafely accessing the head element.

Type parameters

A

The type of element to be stored in the batch.

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object NonEmptyBatch

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
final case class NonEmptyList[A](head: A, tail: List[A])

An ordered list-type object that requires there to always be at least one element present, ruling out the possibility of unsafely accessing the head element.

An ordered list-type object that requires there to always be at least one element present, ruling out the possibility of unsafely accessing the head element.

Type parameters

A

The type of element to be stored in the list.

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object NonEmptyList

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type