forked from pookzilla/Eclipse-Corona-SDK-Templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtable_templates.xml
1 lines (1 loc) · 2.34 KB
/
table_templates.xml
1
<?xml version="1.0" encoding="UTF-8" standalone="no"?><templates><template autoinsert="true" context="LuaUniversalTemplateContextType" deleted="false" description="Concatenate the elements of a table together to form a string. Each element must be able to be coerced into a string. A separator can be specified which is placed between concatenated elements." enabled="true" name="table.concat ">table.concat (${table}, ${sep}, ${start}, ${end})</template><template autoinsert="true" context="LuaUniversalTemplateContextType" deleted="false" description="Returns a shallow copy of array, i.e. the portion of the array (table) with integer keys. A variable number of additional arrays can be passed in as optional arguments. If an array has a hole (a nil entry), copying in a given source array stops at the last consecutive item prior to the hole." enabled="true" name="table.copy">${copy} = table.copy( ${table1}, ${cursor} )</template><template autoinsert="true" context="LuaUniversalTemplateContextType" deleted="false" description="Returns the integer index of object in array. Returns 'nil' if not in array. The search goes through the length of the array as determined by #array, whose value is undefined if there are holes." enabled="true" name="table.indexOf">${index} = table.indexOf( ${table}, ${object} )</template><template autoinsert="true" context="LuaUniversalTemplateContextType" deleted="false" description="Insert a given value into a table. If a position is given insert the value before the element currently at that position" enabled="true" name="table.insert">table.insert (${table}, ${pos}${cursor}, ${value})</template><template autoinsert="true" context="LuaUniversalTemplateContextType" deleted="false" description="Returns the largest positive numerical index of the given table, or zero if the table has no positive numerical indices." enabled="true" name="table.maxn">${max} = table.maxn (${table})</template><template autoinsert="true" context="LuaUniversalTemplateContextType" deleted="false" description="Removes an element from a table." enabled="true" name="table.remove">${object} = table.remove (${table} ${pos}${cursor})</template><template autoinsert="true" context="LuaUniversalTemplateContextType" deleted="false" description="Sorts table elements in place." enabled="true" name="table.sort">table.sort (${table}, ${comparator}${cursor})</template></templates>