remove
Returns a new map with the entry for the given key removed.
Return
a new map instance without the entry for name
Parameters
name
key to remove
Removes entries from the map whose keys are listed in the provided list of names.
Return
a new mutable map with the specified keys removed
Parameters
names
the list of keys to be removed from the map
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.
Return
list without entries for key
Parameters
key
key to remove
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.
Return
A new list with the key-value pairs removed based on the specified keys.
Parameters
keys
A list of keys to be removed from the original list.
ignoringCase
A boolean flag indicating whether the key matching should ignore the case.