Page 1 of 1

Lists,maps, arrays, notation

Posted: 06 Aug 2015 08:40
by bogdyro
Automagic has lists and maps which in general are more useful than simple arrays. But to access elements from lists for example you need functions which tend to be long and boring to write, especially in complex scripts.
Could you implement simple arrays that can be accesed by index, like array_name[index]?
I think it would be useful. And maybe functions to convert from say a files list to an array.
What are your thoughts on this Martin?
Thanks

Re: Lists,maps, arrays, notation

Posted: 06 Aug 2015 19:37
by Martin
I could extend the language to allow accessing elements of a list by index like list[index]. This would simplify a few things.
I add it to the todo-list.

Regards,
Martin

Re: Lists,maps, arrays, notation

Posted: 06 Aug 2015 19:48
by bogdyro
Even better

Re: Lists,maps, arrays, notation

Posted: 28 Aug 2015 11:28
by bogdyro
+1 :)

Re: Lists,maps, arrays, notation

Posted: 30 Aug 2015 11:52
by Martin
+1 :D (unfortunately Android M will cause some delay since many actions have to be adjusted/fixed in order to work properly)

Re: Lists,maps, arrays, notation

Posted: 08 Oct 2015 15:14
by TheBrain1984
+1