MUDL:array reverse

From WikiName
Jump to: navigation, search


Summary

Function Name array_reverse
Settable No
Returns Array


Parameter Options
Array (of any type)


This function takes the input array and returns a new array with the previous elements in reverse.


Example

setproc <parent> # on_foo
foreach(array_reverse(range(1, 10)), %9,
(
    msg_room(%room, '' + %9)
)),

return(true)