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.keyhas to be a constant expression. - Insert a new value into a struct.
(insert struct key val)Insert
valintostructatkey.keyhas to be a constant expression. This is a pure op, so at most one ofstructandvalmay be a !-stream. - Remove values from a struct.
(remove struct key)Removes the value at index
keyfromstruct.keyhas to be a constant expression. - Update values in a struct.
(set struct key val)Set the value for
keytoval.keyhas to be a constant expression. This is a pure op, so at most one ofstructandvalmay be a !-stream.