TIL
There is a built-in Python function called map
.
Python official documentation has it listed...
map(function, iterable, *iterables)
Return an iterator that applies function to every item of iterable, yielding the results.
But doesn't have any example code (maybe a good opportunity to contribute?)
Examples
Snippets from hyper-neutrino