Search

map() ex 1

Formula Example Supporter
description
Mapping a list containing numbers. - When using the map() function on numbers, it transforms the original list and returns a new list based on the specified expression.
example tags
formula
map([100, 150, 200], current * 1.1) - Suppose you have a list of prices for different items and want to add a 10% sales tax to each price. - The original list consists of prices [100, 150, 200]. The expression current * 1.1 adds 10% to each price, resulting in a new list that contains the total prices after tax.
linked blog post
results
88,165,220.00000000000003