# How to pass more (like "...rest" unknown number) of args to another function?

**URL:** <https://forum.kirupa.com/t/how-to-pass-more-like-rest-unknown-number-of-args-to-another-function/288978>\
**Category:** flash\
**Created:** [May 24, 2009, 1:54pm UTC](https://forum.kirupa.com/t/how-to-pass-more-like-rest-unknown-number-of-args-to-another-function/288978 "2009-05-24T13:54:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![awflasher](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/awflasher/32/3562_2.png) [@awflasher](https://forum.kirupa.com/u/awflasher)\
**Post date:** [May 24, 2009, 1:54pm UTC](https://forum.kirupa.com/t/how-to-pass-more-like-rest-unknown-number-of-args-to-another-function/288978/1 "2009-05-24T13:54:01Z")

</div>

I have a function:

```auto
[FONT="Courier New"]function test(arg1:int, ...rest) {
   function anotherTest(rest); [COLOR="Red"]// -> Seems not working
                               // it's just passing an array
                               // rather than a group of args[/COLOR]
}

function anotherTest(...rest) {

}[/FONT]

```
