Lists,maps, arrays, notation

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

Locked
bogdyro
Posts: 241
Joined: 04 Apr 2015 15:14

Lists,maps, arrays, notation

Post by bogdyro » 06 Aug 2015 08:40

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

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Lists,maps, arrays, notation

Post by Martin » 06 Aug 2015 19:37

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

bogdyro
Posts: 241
Joined: 04 Apr 2015 15:14

Re: Lists,maps, arrays, notation

Post by bogdyro » 06 Aug 2015 19:48

Even better

bogdyro
Posts: 241
Joined: 04 Apr 2015 15:14

Re: Lists,maps, arrays, notation

Post by bogdyro » 28 Aug 2015 11:28

+1 :)

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Lists,maps, arrays, notation

Post by Martin » 30 Aug 2015 11:52

+1 :D (unfortunately Android M will cause some delay since many actions have to be adjusted/fixed in order to work properly)

User avatar
TheBrain1984
Posts: 137
Joined: 07 Aug 2013 08:17
Location: Germany

Re: Lists,maps, arrays, notation

Post by TheBrain1984 » 08 Oct 2015 15:14

+1

Locked