gmap

negmas.generics.gmap(group, param)[source]

Calls or indexes the group by the param

Parameters:
Return type:

Any

Examples

>>> gmap([1, 23, 44], 1)
23
>>> gmap({'a': 3, 'b': 5, 'c': 4}, 'c')
4
>>> gmap(lambda x: 3*x, 20)
60

Returns: