Kaya 0.5.3 reference for Array::reverse

List of functions and data types in Array

Void reverse(var [a] xs)

Arguments

Usage

This function reverses an array in-place.

xs = [1,2,3,4,5];
reverse(xs);
// xs = [5,4,3,2,1]
kaya@kayalang.org | Last modified 29 November 2011 | Supported by Durham CompSoc | Powered by Kaya