1 --- 2 input: 3 - &CENTER { x: 1, y: 2 } 4 - &LEFT { x: 0, y: 2 } 5 - &BIG { r: 10 } 6 - &SMALL { r: 1 } 7 8 # All the following maps are equal: 9 result: 10 - # Explicit keys 11 x: 1 12 y: 2 13 r: 10 14 label: center/big 15 16 - # Merge one map 17 << : *CENTER 18 r: 10 19 label: center/big 20 21 - # Merge one map and override 22 << : *LEFT 23 y: 5 24 r: 10 25 label: center/big 26 27 - !!map # Merge multiple maps 28 !!merge ignore: [ *CENTER, *BIG ] 29 label: center/big 30 31 - # Override 32 << : [ *BIG, *LEFT, *SMALL ] 33 x: 1 34 label: center/big 35 36