>> make get-path! [foo bar baz] == :foo/bar/baz
get-path! value returns the value of a
Get-path! is a member of the following typesets:
Get-path! values can be created at runtime by using a
make constructor or
You can create an empty get-path of a given size by supplying an integer value as an argument to
>> make get-path! 10 == :
>> to get-path! "foo bar baz" == :foo/bar/baz
3. Literal syntax
<get-path-literal> ::= :<path-literal> <path-literal> ::= <path-head>/<selector> <path-head> ::= <word-literal> | <path-literal> <selector> ::= <integer> | <word-literal> | :<word-literal> | <paren>
get-path: [get-word! some selector] selector: [#"/" [integer! | word! | get-word! | paren!]]
Path-head datatypes: get-word!,
4. Evaluation Steps
A get-path! value follows the same evaluation rules as
path! until the selector is reached, at which point the value referred to by the selector is returned without being evaluated.
5. Testing values
get-path? to check if a value is of the
>> get-path? first [:foo/bar] == true >> get-path? quote :foo/bar == true
type? to return the datatype of a given value.
>> type? first [:foo/bar] == get-path! >> type? quote :foo/bar == get-path!
6. Predefined words