Using a map operation to transform values