Merge Operator

Merges one record into another

Syntax

record <- [attribute: value, ... ]

Description

record <- [attribute: value, ... ] merges the anonymous record [attribute: value, ... ] into the record bound to record. Merge is useful for setting multiple attributes on a record at once.

Examples

Search for a record and merge another record into it.

search
  celia = [#Celia]

bind
  celia <- [#student grade: 10, school: "East"]

See Also

set operator | add operator | remove operator | action phase