From 9df9b12b2b061d79ab8a0a12e23428538c0bc9d4 Mon Sep 17 00:00:00 2001 From: Mavaddat Javid Date: Fri, 11 Sep 2020 11:57:59 -0700 Subject: [PATCH] Update List.TransformMany.md add a simple example --- docs/List/List.TransformMany.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/List/List.TransformMany.md b/docs/List/List.TransformMany.md index 38e6a24..d1394b7 100644 --- a/docs/List/List.TransformMany.md +++ b/docs/List/List.TransformMany.md @@ -8,3 +8,11 @@ Returns a list whose elements are projected from the input list. The collectionT 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} + +***