Skip to content

OpenBIMRL | List functions

Class path: collection.list.splitList

Split list

splitList1.png

Description

Splits a list at the position of a given index into two separate lists. The location of the index is already part of the second list.

Input

Input Name Type Description
0 Index Number Index at which the list is split
1 List List<Object> List

Output

Output Name Type Description
0 List A List<Object> List A
1 List B List<Object> List B

Use/Example

splitList2.png

Node representation with sample values

Sample file

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