title: Are Ruby arrays loaded from YAML files guaranteed to have their order preserved?
body: <p>I've been told that depending on the YAML library used, when a list (not hash!) in a YAML file is translated into a Ruby array, the order is not guaranteed. However, I've not been able to find any evidence of this. So given a YAML file like:</p>
  
  <pre><code>letters:
  - a
  - b
  - c
  - d
  - e
  </code></pre>
  
  <p>After doing <code>YAML::load File.read('filename')</code>, I'm always guaranteed to get <code>{'letters'=&gt;['a', 'b', 'c', 'd', 'e']}</code>, instead of some other ordering, regardless of which YAML library I'm using, correct?</p>