ecl-logo Documentation

ObjectMap

ObjectMap[expression,objects]results

applies expression to each element of objects, replacing all fields in expression with the values from each of objects.

Details

  • Downloads all objects before replacing any values in the expression.
  • Input
    Output
    Attributes
  • HoldFirst

Examples

Basic Examples  (3)

Add 2 days to Temperature for a list of objects:

If a field does not exist in the object, it will not be replaced:

If an object does not exist, do not replace values in expression for that object:

Attributes  (1)

HoldFirst  (1)

The first argument is not evaluated until after the values from the objects are replaced: