a25f23a286
Provide covariant extensions annotated with @OnlyInputTypes: - Collection<T>: containsAll(Collection<T>), - MutableCollection<out T>: remove(T), removeAll, retainAll (Collection<T>), - List<T>: indexOf(T), lastIndexOf(T) - Map<out K, V>: get(K), containsKey(K), contains(K) - Map<K, V>: containsValue(V) - MutableMap<out K, V>: remove(K) All *Raw extensions are deprecated.
The Kotlin Standard Library
This module creates the standard library for kotlin.
Notes for contributors
We use some code generation to apply the various collection-like methods to various different types like arrays, strings, kotlin.Iterable and java.lang.Iterable etc.
To run the code generator from a kotlin checkout
cd libraries/tools/kotlin-stdlib-gen
mvn compile exec:java
This then runs the GenerateStandardLib.kt script to create the source from the files for java.lang.Iterable and java.util.Collection etc.