Constructing collections Construct from elements The most common way to create a collection is with the standard library functions list Of(), set Of(), mutable List Of(), mutable Set Of().