At My Fingertips
Rapid Playground
map(function, sequence)
Given a function and a sequence, constructs a sequence of the results of applying the function to the elements of the sequence.
functionfunction to apply to the elements
sequencesequence to map
[1, 2, 3]
[2, 4, 6]
See also map in the official documentation
PyTamaro is a project created by the Lugano Computing Education Research Lab at the Software Institute of USI
Privacy Policy • Platform Version 4153f55 (Wed, 02 Apr 2025 06:58:19 GMT)