StendhalScripting/LuaAPI: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>AntumDeluge
imported>AntumDeluge
Line 311: Line 311:
; ''<span style="color:green;">arrays.toTable</span>(list)''
; ''<span style="color:green;">arrays.toTable</span>(list)''
: Converts a Java array or list to a Lua table.
: Converts a Java array or list to a Lua table.
: <span style="color:darkblue; font-style:italic;">list:</span> Java array or [https://docs.oracle.com/javase/8/docs/api/java/util/List.html list].
: '''''list:''''' Java array or [https://docs.oracle.com/javase/8/docs/api/java/util/List.html list].
: returns: New Lua table with contents of <code>list</code> added.
: ''returns:'' New Lua table with contents of <code>list</code> added.


== grammar ==
== grammar ==