-
Notifications
You must be signed in to change notification settings - Fork 0
docs : lamarray methods
g8tr1522 edited this page Jan 7, 2018
·
4 revisions
'lamarrays' have the basic lam methods, but they also have their own unique class methods.
These can be either 'named methods' like gettable or unpack or their overridden lua metamethods.
-
gettable()-- returns a VLA which is a copy of the VLA inside the lamarray -
settable(t)-- set the VLA inside the lamarray with the passed tablet -
unpack()-- just an easier way of doingtable.unpack( obj:gettable() )
-
..(concat) -- concatenates two lamarrays (and returns a new one) -
#(len) -- returns the length of the VLA inside the lamarray -
[(numindex)]-- about how lamarrays use their numerical indexing -
ipairs-- about how lamarrays can be passed toipairs