Skip to content

OpenBIMRL | List functions

Class path: collection.list.insertElements

Insert element

insertElements1.png

Description

Inserts an element into a list specifying the index before which is inserted.

Input

Input Name Type Description
0 List List<Object> List into which is inserted
1 Elements List<Object> element to be inserted
2 Indices List<Number> Index before which is inserted

Output

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

Use/Example

insertElements2.png

Node representation with sample values

Sample file

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