G.unpack
From GMod Wiki
| Function | |
| Syntax | unpack( Table  table [, Number  offset ] ) Where is this used? | 
| Description: | |
| Returns, in a variadic form, all the sequential numeric keys in the table starting at 1 or offset. | |
| Returns: | ... | 
| Part of Library: | Global Functions | 
| Realm: |  | 
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.unpack]G.unpack [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] | 
	
Examples
| Description | Unpack a table | 
|---|---|
| Used on |  | 
| Code | t = { 1, 2, 3, 4, 5, 6 , a = 12, [ 8 ] = 7 } print( unpack( t ) ) | 
| Output | 1 2 3 4 5 6 | 
| Description | Unpack a table with an offset | 
|---|---|
| Used on |  | 
| Code | t = { "a", "b", "c", "d" } print( unpack( t , 2 ) ) | 
| Output | b c d | 
 
			
			