newMap()

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

Moderator: Martin

Locked
User avatar
Bushmills
Posts: 286
Joined: 23 Sep 2014 21:56

newMap()

Post by Bushmills » 17 Nov 2014 22:07

I haven't found any other method of populating a map other than by repetitive addMapEntry(map, key, value), which may be clumsy when initialising a map with predefined (static, or by variables) keys and values.

I'd like to see an extension to newMap, allowing

Code: Select all

   newMap(key1, value1, key2, value2, ...)
and therefore

Code: Select all

   newMap(
      key1, value1,
      key2, value2,
      key3, value3
   )
unless there's a simple way to get similar functionality without the repetitive addMapEntry execution, which I may have missed.

Locked