Yaml - Mapping (Map)

About

A map in yaml

Syntax

hr:  65    # Home runs
avg: 0.278 # Batting average
rbi: 147   # Runs Batted In
{
    hr: 65,
    avg: 0.278, rbi: 147
}

Example

hr:  65    # Home runs
avg: 0.278 # Batting average
rbi: 147   # Runs Batted In
Mark McGwire: {hr: 65, avg: 0.278}
Sammy Sosa: {
    hr: 63,
    avg: 0.288
}
american:
  - Boston Red Sox
  - Detroit Tigers
  - New York Yankees
national:
  - New York Mets
  - Chicago Cubs
  - Atlanta Braves

Powered by ComboStrap