Array comprehensions[1] come in handy for such conversions.
Example:
https://gist.github.com/1256833
[1]: http://mzl.la/rbhokM
-- Robi
> thanks
> -will
>
Additionally, Ringo's got `Scriptable[List|Map]` mirroring Java
collections to their respective JS counterparts.
Here're some more examples -- also showing that Rhino's JS arrays
implement `java.util.List` as well as its JS objects implement
`java.util.Map` interfaces and how this can be useful:
https://gist.github.com/1256910
HTH.
-- Robi
>
>> thanks
>> -will
>>
>