Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
MAP
[go: Go Back, main page]

MAP

Syntax

=MAP(array, expression)

Arguments

ArgumentTypeDescription
arrayArrayArray of elements
expressionLambdaTransformation to perform on each item of the array

Examples

=MAP(ARRAY(1, 2, 3), x => x * x)[1, 4, 9]
MAP function is called for each item in the array (the values 1, 2, and 3). For each item, the value is multiplied by itself, resulting in an array containing the square of each value: [1, 4, 9].