From scala collection library documentation:
xs.reverseMap(f)
is the same as
xs.reverse.map(f)
but might be more efficient.