Skip to main content
Version: 25.2

duplicatePropertyKeyMode

  • global property
  • The duplicatePropertyKeyMode global property controls the behavior when a property list is specified that contains duplicate keys. The default setting of this property is "error", which will throw an exception if a duplicate key is encountered. Other options are "first" or "last" which will take only the first or last value given for a particular key, ignoring all others; or "list" which will accept all values for a duplicated key as a list.
         put (x:1, y:2, z:3, x:4) -- throws an exception
set the duplicatePropertyKeyMode to "list"
put (x:1, y:2, z:3, x:4) -- (x:(1,4), y:"2", z:"3")