Collections package¶
The Collections package provides a variety of collection classes, including map, set, range, heap, ring buffer, list, and flags.
Map
- Hashmap by strutural equality (use MapIs
for identity equality).
Set
- A set built on top of Map
using structural equility (use SetIs
for identity equality).
Range
- Iterate over a range of numbers with optional step size.
BinaryHeap
- A priority queue implemented as a binary heap -- use a BinaryHeapPriority
parameter to determine priority.
RingBuffer
- A ring buffer with fixed size.
List
- A doubly linked list.
Flags
- A set of single bit flags (size determined upon creation).
Public Types¶
- class BinaryHeap
- type BinaryHeapPriority
- interface Flag
- class Flags
- primitive HashByteSeq
- primitive HashEq
- primitive HashEq64
- interface HashFunction
- interface HashFunction64
- primitive HashIs
- class HashMap
- class HashSet
- interface Hashable
- interface Hashable64
- class List
- class ListNode
- class ListNodes
- class ListValues
- type Map
- type MapIs
- class MapKeys
- class MapPairs
- class MapValues
- type MaxHeap
- primitive MaxHeapPriority
- type MinHeap
- primitive MinHeapPriority
- class Range
- class Reverse
- class RingBuffer
- type Set
- type SetIs
- class SetValues
- primitive Sort