メインコンテンツまでスキップ
バージョン:25.2

replacing

  • operator

  • replacing properties

  • Generates a modified property list on the fly by adding properties to a property list, replacing any matching properties with new values.

  • Examples: +

     set newObj to {A:1, B:2, C:3}
    put newObj replacing properties {B:44, D:77} —> {A:1, B:44, C:3, D:77}
  • Related: replace properties