Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

removedup(List, x[indeks] ) → List

In a given list, this function sequentially scans according to the provided index and removes other indices that are identical at that index. It reconstructs the list as no elements are equal to the value of designated index.

Example:

Code Block
<O N="LinelObject1" T="Project" Category="Functions" TransAlignRule="1">
    <!-- created by ParamML Examples on 8/22/2023 -->
    <P N="line" V="[[20,0,10],[25,0,30]]" />
    <P N="linelength" V="linel(line)" />
</O>
Image Added

A illustrated above, at parameter “a”, function scans based on the index 1 and removes the identical elements from the list. At parameter “b” function scans based on the index 0 and removes the identical elements from the list.

To view this example in the library, see (https://openbrim.org/app/?incubator=1&author=ParamML_Examples_OpenBrIM+Platform&obj=objidynawrl0sfuj995k3d0nks )