title: Populate array of integers from a comma-separated string of numbers and hyphenated number ranges
body: <p>I want to translate/hydrate/expand/parse a comma-separated string of integers and hyhenated integer range expressions and populate an array with its equivalent values as individual integers elements.</p>
  <p>Input strings might look like the following:</p>
  <pre><code>3,5,6,9,11,23
  </code></pre>
  <p>or</p>
  <pre><code>3-20
  </code></pre>
  <p>or</p>
  <pre><code>3-6,8,12,14-20
  </code></pre>
  <p>I want to return these as an array of integers, so the last one would become:</p>
  <pre><code>[3,4,5,6,8,12,14,15,16,17,18,19,20]
  </code></pre>
  <p>Is there either a function available that does this, or how would I start in writing one?</p>