Package-level declarations

Types

Link copied to clipboard
object Consts

Constants used across the generator.

Functions

Link copied to clipboard
fun <V> Map<String, V>.addOrReplace(pair: Pair<String, V>): Map<String, V>

Returns a new map with the provided pair added, replacing any existing value for the key.

fun <V> Map<String, V>.addOrReplace(pairs: List<Pair<String, V>>): Map<String, V>

Adds the provided key-value pairs to the map or replaces existing entries with the same keys.

Returns a new list where an item with the given key is added or replaced.

Adds or replaces key-value pairs in the current list with key-value pairs from the provided list. If a key from the provided list exists in the current list, the corresponding value is replaced. If ignoringCase is true, key matching is performed case-insensitively.

Link copied to clipboard

Computes the Cartesian product of multiple lists, generating all possible combinations by selecting one element from each input list.

Link copied to clipboard
fun <T> getSubsetsOfValues(elements: List<T>, includeCompleteSet: Boolean = false, includeEmptySet: Boolean = false): List<List<T>>

Generates subsets of the input list based on specified inclusion criteria.

Link copied to clipboard

Returns a new map with the entry for the given key removed.

Removes entries from the map whose keys are listed in the provided list of names.

fun <T> List<KeyValuePair<String, T>>.remove(key: String, ignoringCase: Boolean = false): List<KeyValuePair<String, T>>

Returns a new list excluding items whose key equals the provided key.

fun <T> List<KeyValuePair<String, T>>.remove(keys: List<String>, ignoringCase: Boolean = false): List<KeyValuePair<String, T>>

Removes key-value pairs from the list where the keys match any of the specified keys.