Issie logo Issie

LookupArray<'T> Type

A store of 'T addressed by the index each item was stamped with when it was added. Mutable, deliberately, and build-scoped: see docs/mutableState.md. Nothing outside the module should write `Items` or `Count`.

Record fields

Record Field Description

AddIndexStamp

Full Usage: AddIndexStamp

Field type: 'T -> int -> 'T

write it, returning the stamped item

Field type: 'T -> int -> 'T

Count

Full Usage: Count

Field type: int
Modifiers: mutable
Field type: int

GetIndex

Full Usage: GetIndex

Field type: 'T -> int

read an item's own record of its index

Field type: 'T -> int

Items

Full Usage: Items

Field type: 'T array
Modifiers: mutable

backing store; entries at or past Count are undefined and must never be read

Field type: 'T array

MaxIncrement

Full Usage: MaxIncrement

Field type: int

growth cap, so a large array extends by a fixed step rather than doubling

Field type: int

Type something to start searching.