Max list value based on function
Returns the maximum value of a list, after mapping each element to a value using the provided function.
- Use
map()
withfn
to map each element to a value using the provided function. - Use
max()
to return the maximum value.