Post Reply 
list functions sugestion
09-20-2015, 08:41 PM (This post was last modified: 09-20-2015 08:44 PM by komame.)
Post: #2
RE: list functions sugestion
Hi,

To get n-th item of the list you can use index:
local l; //declare variable for the list
l:={1, 2, 3}
l(2) -> 2
you can also store values in the n-th item of list that way:
l(2):=4
PRINT(l) => {1, 4, 3}

FOREACH? => there is the ITERATE function, but not for all purposes.

Arr2List and List2Arr? => Check list2mat and mat2list.

BR
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
list functions sugestion - hpfx - 09-20-2015, 07:55 PM
RE: list functions sugestion - komame - 09-20-2015 08:41 PM
RE: list functions sugestion - hpfx - 09-20-2015, 08:49 PM
RE: list functions sugestion - komame - 09-20-2015, 08:53 PM
RE: list functions sugestion - hpfx - 09-20-2015, 08:59 PM
RE: list functions sugestion - douganc - 09-21-2015, 07:15 AM
RE: list functions sugestion - parisse - 09-21-2015, 09:15 AM
RE: list functions sugestion - hpfx - 09-22-2015, 08:04 AM
RE: list functions sugestion - Tyann - 09-22-2015, 11:06 AM
RE: list functions sugestion - komame - 09-22-2015, 01:25 PM
RE: list functions sugestion - hpfx - 09-24-2015, 02:53 PM



User(s) browsing this thread: 3 Guest(s)