Fixed T?.toSingletonList()

This commit is contained in:
Auxilor
2023-05-14 16:35:56 +01:00
parent 4aed33751d
commit 4ac6325a41

View File

@@ -15,5 +15,5 @@ fun <T> create2DList(rows: Int, columns: Int): MutableList<MutableList<T>> =
ListUtils.create2DList(rows, columns)
/** @see ListUtils.toSingletonList */
fun <T> T.toSingletonList(): List<T> =
fun <T> T?.toSingletonList(): List<T> =
ListUtils.toSingletonList(this)