When related sequences of data (such as arrays) are nested inside other sequences of data, this relationship is indicated by indentation. So, for example, let’s suppose you have this array declared in Ruby:
nested_arrays.rb
arr = [1,[2,3,[4,5,6,[7,8,9,10],"end3"],"end2"],"end1"]
When rendered as YAML (for example, by y( arr )
), this becomes as follows:
--- - 1 - - 2 - 3 - - 4 - 5 - 6 - - 7 - 8 - 9 - 10 - end3 - end2 - end1
18.226.251.206