You are here: Lua Scripting Resources eGuide > Lua Scripting API Reference Guide > Variable Library > makeNumericList

18.2 makeNumericList

var.makeNumericList(name)

Creates a list in the symbol table with the given name. The list is optimized to hold numeric values. Routines storeAt and recallAt operate much more efficiently on lists that are created with this function.

Usage Note

This function cannot be used to create a numeric matrix. Routines var.recallAt and var.storeAt documented below will work with matrices but only if they are created by some other means (see Listing 18.1).

Listing 18.1: Example for Accessing a Matrix via the Variable Library

var.store("mat", {{1,2}, {3,4}})  -- creates matrix mat 
var.storeAt("mat", 13.3, 1, 1)
val = var.recallAt("mat", 1, 1)

Introduced in platform.apiLevel = '2.0'