Skip to content

OpenBIMRL | List functions

Class path: collection.list.replaceElements

Replace elements

replaceElements1.png

Description

Replaces elements in a list with other elements by specifying their indices.

Input

Input Name Type Description
0 List List<Object> List to be modified
1 Items List<Object> Elements that will be inserted into the list
2 Indices List<Number> Indices of the elements in the list that will be replaced

Output

Output Name Type Description
0 New list List<Object> Results list

Use/Example

replaceElements2.png

Node representation with sample values

Sample file

Download of a sample file so that the user can test the usage himself