[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Record: test for field



Given a record

    r ==  [C |-> "B"]

how can I use a "default" / fallback value for non-existing keys?

Currently, using r["A"] results in a runtime error 'Attempted to apply the record[C |-> "B"] to nonexistent record field A.'