diff --git a/eco-api/src/main/kotlin/com/willfp/eco/util/ListUtils.kt b/eco-api/src/main/kotlin/com/willfp/eco/util/ListUtils.kt index 180c0aee..48091808 100644 --- a/eco-api/src/main/kotlin/com/willfp/eco/util/ListUtils.kt +++ b/eco-api/src/main/kotlin/com/willfp/eco/util/ListUtils.kt @@ -2,20 +2,18 @@ package com.willfp.eco.util -/** - * @see ListUtils.listToFrequencyMap - */ +/** @see ListUtils.listToFrequencyMap */ fun List.toFrequencyMap(): Map = ListUtils.listToFrequencyMap(this) -/** - * @see ListUtils.containsIgnoreCase - */ +/** @see ListUtils.containsIgnoreCase */ fun Iterable.containsIgnoreCase(element: String): Boolean = ListUtils.containsIgnoreCase(this, element) -/** - * @see ListUtils.create2DList - */ +/** @see ListUtils.create2DList */ fun create2DList(rows: Int, columns: Int): MutableList> = ListUtils.create2DList(rows, columns) + +/** @see ListUtils.toSingletonList */ +fun T.toSingletonList(): List = + ListUtils.toSingletonList(this)