I\'m beginning to appreciate the value of lambda expressions in python, particularly when it comes to functional programming, map, functions returning functions
map
These are functionally (no pun intended) identical.
indexer = lambda a0, a1, idx: a0[idx] + a1[idx] def indexer(a0, a1, idx): return a0[idx] + a1[idx]
If you have an aesthetic preference for one or the other, then use it.