struct
Define a function, alias, dictionary or phrase.
struct Name = [ key = definition ... ]Defines a phrase dictionary through the same grammar as let. Children are accessed with Name:key; use record for native data layout.
Syntax
<name:qualified-id> = <definition:raw>Example
let say = <print>Arguments
- —
- : —
- definition — fn, phrase, a reference <name> or a dictionary [...]. Inside fn, let also binds expression values.
- name — New name; qualify it with a dictionary, e.g. Tools:say.