Skip to content

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.

Named methods

  • 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 table t
  • unpack() -- just an easier way of doing table.unpack( obj:gettable() )

Overridden Metamethods

  • .. (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 to ipairs

Clone this wiki locally