Skip to content

OpenBIMRL | List functions

Class path: collection.list.groupBy

Grouping according to

groupBy1.png

Description

Groups a list by key values from a second list.

Input

Input Name Type Description
0 List List<Object> List of values to be grouped
1 Reference list List<Object> List of key values

Output

Output Name Type Description
0 Keys List<Object> Keys
1 Values List<Object> Values

Use/Example

groupBy2.png

Node representation with sample values

Sample file

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