struct
module reference
struct
module reference
Utilities for dealing with structs.
index
- Index into a struct.
- Insert a new value into a struct.
- Remove values from a struct.
- Update values in a struct.
details
- Index into a struct.
(get struct key)
Get the value at
key
.key
has to be a constant expression. - Insert a new value into a struct.
(insert struct key val)
Insert
val
intostruct
atkey
.key
has to be a constant expression. This is a pure op, so at most one ofstruct
andval
may be a !-stream. - Remove values from a struct.
(remove struct key)
Removes the value at index
key
fromstruct
.key
has to be a constant expression. - Update values in a struct.
(set struct key val)
Set the value for
key
toval
.key
has to be a constant expression. This is a pure op, so at most one ofstruct
andval
may be a !-stream.