MUDL:array reverse
From SlothMUD Wiki
Revision as of 04:45, 2 December 2018 by Teker (Talk | contribs) (Created page with " __TOC__ = Summary = {|class="abilitiestable" border="0" cellspacing="0" cellpadding="0" ! Function Name | array_reverse |- ! Settable | No |- ! Returns | Array |} {|clas...")
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)