MUDL:array reverse

From WikiName
Revision as of 00: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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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)