shuffle

get given collection shuffled


Parameters

shuffle collection :literal :pathliteral :block

Returns

  • :block
  • or  :nothing

Examples

copy
shuffle [1 2 3 4 5 6] ; => [1 5 6 2 3 4 ]

copy
arr: [2 5 9] shuffle 'arr print arr ; 5 9 2

Related