{id: array}
{id: array-intro}
{id: array-elements}
{id: array-iterate} {i: each} {i: each_with_index}
{id: array-push} {i: push} {i: append} {i: <<}
{id: array-empty}
- Empty array must come with a type definition
{id: array-count-digits}
{id: array-operations}
- add +
- repeat *
{id: add-arrays}
{id: repeat-arrays}
{id: select} {i: select} {i: select!} {i: filter} {i: grep}
{id: reject} {i: reject} {i: reject!} {i: filter} {i: grep}
- the
reject!
with the exclamation mark will modify the array - the
reject
without the exclamation mark will only return the filtered array
{id: transform-with-map} {i: map} {i: map!}
{id: array-sample} {i: sample}
- Using Random behind the scenes.
{id: array-shuffle} {i: shuffle}
- Using Random behind the scenes.
{id: array-join}
{id: remove-nil-elements} {i: compact}
{id: array-with-nil} {i: 0_i64}
{id: array-includes} {i: includes?}
{id: array-delete} {i: delete}
{id: array-delete-at} {i: delete_at}
{id: array-insert} {i: insert}
{id: array-shift} {i: shift}
{id: array-uniq} {i: uniq} {i: uniq!}
{id: array-first} {i: first} {i: first?}
{id: array-permutations} {i: permutations}