singletonList

Wraps a given item in a list.

This is a functional style shorthand for listOf(this), allowing a simpler syntax for creating a list from a single item.

Receiver

The item to be wrapped in a list.

Return

A list containing only the receiver item.

Since

0.12.0