reverse

Static reverse 

Source
pub static reverse: ReverseInternalType
Expand description

Reverses the order of an array, maps to Array.reverse()

Examples

function setup() {
  let myArray = ['A', 'B', 'C'];
  print(myArray); // ['A','B','C']

  reverse(myArray);
  print(myArray); // ['C','B','A']
}

Parameters

list Array to reverse