User Tools

Site Tools


modding:function:atmlookup

Discuss this page on this page's Talk Page.

atmLookup

atmLookup is not included in the Xelerus list.

Syntax (atmLookup atmtable atom) → entry
Argument List atmtable: The atom table you are looking up an entry in.
atom: The integer atom value that specifies the entry to be looked up.
Returns entry: The entry found in the atom table at the atom value given. Or Nil if not found?
Category atom functions
Description This looks up an entry from an atom table.

Example

Example from alterecco's post

(setq a (atmAtomTable
  (list '(string hello) (list "5" " Print") (list 3 "World") '(8 "me"))
)) 
(atmLookup a 5) 

Returns “Print”

IMPORTANT: It is not known whether this function is stable for use. Use with caution!

modding/function/atmlookup.txt · Last modified: 2014/12/27 04:40 by 127.0.0.1