Data types represent various kinds of data. Advanced data types, which are going to allow us to define multiple elements under a single key.

Inside YAML sequences, which are also known as Collections or List are used to represent ordered list of items.

 

Collections

  • Sequences
    • Block Type
      • Block sequences indicate each entry with dash and a space
        • This approach uses indentation to define the hierarchy of elements
    • Flow Type Sequence
      • More compact and json type
      • uses square brackets to define a sequence 
    • Nested Type - combination of both
      • s

 

  • Sequences Mapping

 

 

List

  • we should be able to store the duplicate elements.
  • Set
    • we can't store the duplicate elements.
  • Mapping
    • Sequence Mapping

Related Question