global module
REC@
( rec field -- value )
( rec fields -- value )
Given a record, returns the value for the specified field
. If an array of fields is provided, this will assume the record's value is another record, nested to at least the number of fields indicated and will drill down into the record to retrieve the value.
Example:
[["key" 101] ["name" "John Doe"]] REC
"key" REC@ # 101
[["key" 102] ["item" [["name" "cabbage"] ["cost" 2.00]] REC]] REC
["item" "name"] REC@ # "cabbage"