Collection extensions

selectmany

collectionstandard futureprog, computer function, computer program

Syntax

@CollectionVariable.selectmany(ItemVariableName, InnerFunction)
Returns
Collection (Inner Type)
Available in
standard futureprog, computer function, computer program
The SELECTMANY function is used when you have a collection of things that themselves contain another collection, and you want to aggregate them all together. For example, if you have a ROOM COLLECTION and you want to get all of the characters in all of those rooms, you could do .SelectMany(x, @x.Characters) and you would have a CHARACTER COLLECTION with all these characters.