Rename toMap { selector } to toMapBy.

#KT-6657
This commit is contained in:
Ilya Gorbunov
2015-10-08 00:39:47 +03:00
parent fd7b670414
commit e09c0ae2ff
6 changed files with 191 additions and 121 deletions
@@ -94,6 +94,16 @@ fun snapshots(): List<GenericFunction> {
}
templates add f("toMap(selector: (T) -> K)") {
inline(true)
include(Strings)
typeParam("K")
returns("Map<K, T>")
deprecate("Use toMapBy instead.")
deprecateReplacement("toMapBy(selector)")
body("return ${deprecateReplacement.default}")
}
templates add f("toMapBy(selector: (T) -> K)") {
inline(true)
typeParam("K")
doc {