Collection extensions
selectmany
Syntax
@CollectionVariable.selectmany(ItemVariableName, InnerFunction)
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.