Skip to content

OpenBIMRL | List functions

Class path: collection.list.getIndexOfElement

Index of an element

getIndexOfElement1.png

Description

Retrieves the index of a searched element within a list.

Input

Input Name Type Description
0 Element Object element searched
1 List List<Object> List in which the element is searched for

Output

Output Name Type Description
0 Indices List<Number> Indices of the element

Use/Example

getIndexOfElement2.png

Node representation with sample values

Sample file

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