Other Type Aliases
The following type aliases are available globally.
-
A type-erased array that is not statically known to support any operations.
Declaration
Swift
public typealias AnyElementArrayBuffer = AnyArrayBuffer<AnyObject>
-
A sequence backed by one of two sequence types.
An
EitherSequence
can sometimes be used an alternative toAnySequence
. Advantages ofEitherSequence
include higher performance, as more information is available at compile time, enabling more effective static optimizations.Tip: if code uses
AnySequence
, but most of the time is used with a particular collection typeT
(e.g.Array<MyThings>
), consider using anEitherSequence<T, AnySequence>
.Declaration
Swift
public typealias EitherSequence<A: Sequence, B: Sequence> = Either<A, B> where A.Element == B.Element
-
A collection of one of two collection types.
See also
EitherSequence
.Declaration
Swift
public typealias EitherCollection<A: Collection, B: Collection> = Either<A, B> where A.Element == B.Element
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Indexes priority queues using an
Array
, where the PriorityQueue’s Payloads areIdIndexable
.Declaration
Swift
public typealias ArrayPriorityQueueIndexer<Key: IdIndexable, Value> = CollectionPriorityQueueIndexer<Key, [Value?], Value>
-
A GenericPriorityQueue with useful defaults pre-specified.
See also
GenericPriorityQueue
.Declaration
Swift
public typealias SimplePriorityQueue<Payload> = GenericPriorityQueue< Int, Payload, [PriorityQueueElement<Int, Payload>], NonIndexingPriorityQueueIndexer<Payload, Int>>
-
A PriorityQueue with useful defaults pre-specified.
See also
GenericPriorityQueue
.Declaration
Swift
public typealias PriorityQueue<Payload, Priority: Comparable> = GenericPriorityQueue< Priority, Payload, [PriorityQueueElement<Priority, Payload>], NonIndexingPriorityQueueIndexer<Payload, Int>>
-
A
GenericPriorityQueue
that uses aDictionary
to index the location ofPayload
s to allow for efficient updates to aPayload
‘s priority.Note: every
Payload
inself
must not equal any otherPayload
inself
.Declaration
Swift
public typealias ReprioritizablePriorityQueue<Payload: Hashable, Priority: Comparable> = GenericPriorityQueue< Priority, Payload, [PriorityQueueElement<Priority, Payload>], Dictionary<Payload, Int>>
-
A GenericMaxPriorityQueue with useful defaults pre-specified.
See also
GenericMaxPriorityQueue
.Declaration
Swift
public typealias SimpleMaxPriorityQueue<Payload> = GenericMaxPriorityQueue< Int, Payload, [PriorityQueueElement<Int, Payload>], NonIndexingPriorityQueueIndexer<Payload, Int>>
-
A MaxPriorityQueue with useful defaults pre-specified.
See also
GenericMaxPriorityQueue
.Declaration
Swift
public typealias MaxPriorityQueue<Payload, Priority: Comparable> = GenericMaxPriorityQueue< Priority, Payload, [PriorityQueueElement<Priority, Payload>], NonIndexingPriorityQueueIndexer<Payload, Int>>
-
A
GenericMaxPriorityQueue
that uses aDictionary
to index the location ofPayload
s to allow for efficient updates to aPayload
‘s priority.Note: every
Payload
inself
must not equal any otherPayload
inself
.Declaration
Swift
public typealias ReprioritizableMaxPriorityQueue<Payload: Hashable, Priority: Comparable> = GenericPriorityQueue< Priority, Payload, [PriorityQueueElement<Priority, Payload>], Dictionary<Payload, Int>>
-
Undocumented
Declaration
Swift
public typealias KeyValueTuple<Key, Value> = (key: Key, value: Value)
-
-
-
-
-
-
-
-