ceylon.language.forKey.ceylon Maven / Gradle / Ivy
"A function that returns the result of applying the given
[[function|resulting]] to the [[key|Entry.key]] of
a given [[Entry]], discarding its `item`.
Map> map = ... ;
{String*} uppercaseKeys = map.map(forKey(String.uppercased));"
see (`function forItem`)
tagged("Functions")
shared Result forKey(Result resulting(Key key))
(Key->Anything entry)
given Key satisfies Object
=> resulting(entry.key);
© 2015 - 2024 Weber Informatics LLC | Privacy Policy