Python LAMBDA | Development notes
Syntax: lambda argument_list: expression
basic
map()
filter()
In [10]: l = [{'name': 'a', 'id':1}, {'name': 'b', 'id':2}]
In [12]: r = filter(lambda x: x['name'] == 'a', l)
In [13]: print r
[{'name': 'a', 'id': 1}]
reduce()
- Refs: http://www.python-course.eu/lambda.php