map(Loop,x.parameter) or map(List,x.parameter)
<O N="mapFunctionObject1" T="Project" Category="Functions" TransAlignRule="1">
<!-- created by ParamML Examples on 8/10/2023 -->
<P N="List1" V="[1,2,3,4,5,6]" />
<!-- add +1 to each value in the list -->
<P N="map1" V="map(List1, x+1)" />
<!-- get index number of each item in the list -->
<P N="map2" V="map(List1, xi)" />
<!-- change default counter -->
<P N="map3" V="map(List1, k=> k+1)" />
<!-- create list of list -->
<P N="map4" V="map(List1, List1)" />
<!-- get value of first item in each list in a list of list -->
<P N="map5" V="map(map4, x[0])" />
<!-- usage of map() inside map() -->
<!-- y represents each list item in the list of list -->
<P N="map6" V="map(map4, y=>map(y, x-1))" />
<!-- manipulation of list count in a list of list -->
<P N="map7" V="map(map4, y=> filter(y,x.LT.3))" />
<!-- extract value from loop -->
<O N="Loop1" T="Repeat" S="0" E="9" I="1" CTRL="index" index="0">
<O N="Line1" T="Line">
<O N="PT1" T="Point" X="0" Y="0" Z="0" />
<O N="PT2" T="Point" X="10 * index + 1" Y="0" Z="0" />
</O>
</O>
<!-- extract parameter value -->
<P N="map8" V="map(Loop1, x.Line1.PT2.X)" />
<!-- extract object -->
<P N="map9" V="map(Loop1, x.Line1.PT2)" />
</O>Last updated
