1 API
1API
8.18
top
← prev up next →

Vector Struct: Performant Fake StructsπŸ”— i

This module is a typed variant of the vector-struct module. See its documentation for examples and additional information.

1APIπŸ”— i

syntax

( vecstruct id([field-id:field-type]...)struct-option...)

struct-option = #:mutable
Creates utility functions for creating and manipulating vectors to emulate structs. Defines id as a constructor taking the number of parameters as there are field-id elements. Each element is typed with the corresponding field-type. Also defines id? as a predicate to identify if a given object fits the proper underlying struct format.

Subsequently generates a series of id-field-id accessors. If #:mutable is specified, also generates set-id-field-id! mutators.

If #:mutable is specified, then the underlying datatype will be a mutable vector, otherwise it will be an immutable vector.

top
← prev up next →

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /