Skip to content
This repository was archived by the owner on Feb 5, 2024. It is now read-only.

Latest commit

 

History

History
18 lines (16 loc) · 998 Bytes

File metadata and controls

18 lines (16 loc) · 998 Bytes

List.TransformMany

Returns a list whose elements are transformed from the input list using specified functions.

function (list as list, collectionTransform as function, resultTransform as function) as list

Description

Returns a list whose elements are projected from the input list. The collectionTransform function is applied to each element, and the resultTransform function is invoked to construct the resulting list. The collectionSelector has the signature (x as Any) => ... where x is an element in list. The resultTransform projects the shape of the result and has the signature (x as Any, y as Any) => ... where x is the element in list and y is the element obtained by applying the collectionTransform to that element.

Category

List.Transformation functions

Examples

Add 1 to each value in the list {1, 2}.

List.TransformMany({2, 3}, (value) => {value + 1}, (oldValue, newValue) => oldValue * newValue)

{6, 12}