Feature Request: map() function for tables

Hi guys,

I’m often wishing to apply a single function to a group of elements, but often also find that I’ve indexed them by key and thus they’re in a table, which doesn’t support the map() function.

Would it be possible to have support for these ‘functional’ like functions for tables as well? (where applicable).

Many thanks

Is there a reason that foreach() doesn’t work here? You could certainly make an equivalent of map implemented with foreach (unless I’m missing something)

Hi Hugo,

It’s simply that map, apply etc allow for functional style programming, it would be handy to have this on tables so that the same style/paradigm could be applied to both.