Ilya Gorbunov
dd71cbb96e
Accept more generic ranges in contains.
2015-07-27 19:02:47 +03:00
Ilya Gorbunov
e127e234f8
Stdlib Generators: add generic ranges, allow specify concrete primitive for generic, render types in receiver.
2015-07-27 19:02:45 +03:00
Ilya Gorbunov
065945176e
Use bare types in check and remove unneeded cast after.
...
Do not check whether a sequence is actually a collection or list.
2015-07-24 04:35:45 +03:00
Ilya Gorbunov
e799c92131
Accept more generic range for coerceIn.
2015-07-24 04:35:33 +03:00
Ilya Gorbunov
877cb72ba1
Array.copyOfRange: rename from, to to fromIndex, toIndex
2015-07-24 04:35:21 +03:00
Ilya Gorbunov
aeb7666578
Provide binarySearch with comparator for arrays.
2015-07-24 04:35:08 +03:00
Ilya Gorbunov
46858ddabd
Allow to specify optional from and to indices for filling an array.
...
#KT-8382 Fixed
2015-07-24 04:34:19 +03:00
Ilya Gorbunov
c1975d0b2e
Array.fill returns Unit since it's an in-place array operation.
...
Revised #KT-4760
2015-07-24 04:34:07 +03:00
Ilya Gorbunov
12e3542bce
Provide toTypedArray method for primitive arrays.
2015-07-24 04:33:55 +03:00
Ilya Gorbunov
f604eef2fe
Undeprecate find(predicate) and generate it for all collection-like types. Provide findLast(predicate).
...
Drop deprecated method findNot and extension properties first, last, head, tail
#KT-5185 Fixed
2015-07-24 04:28:46 +03:00
Ilya Gorbunov
1cc94f92e2
Also generate contains for meaningless combinations of types to prevent mistakenly using contains from an Iterable.
...
#KT-6361
2015-07-24 04:28:34 +03:00
Ilya Gorbunov
b7fbb60db4
Generate contains function for all combinations of primitive numeric ranges and arguments.
...
#KT-6361
2015-07-24 04:14:06 +03:00
Ilya Gorbunov
71f3e3049a
Provide until function to construct integer ranges with an end being excluded from range.
...
#KT-4665 Fixed
2015-07-24 04:13:41 +03:00
Ilya Gorbunov
808170a84b
Generate range downTos with templates DSL
2015-07-24 04:13:29 +03:00
Dmitry Jemerov
0ff0fc847d
delete the rest of KDoc
2015-07-23 19:00:46 +02:00
Dmitry Jemerov
b3a2ee2148
delete KDoc Maven plugin
2015-07-21 16:48:38 +02:00
Ilya Gorbunov
2c396cf28e
Add clarification about the lazy nature of Sequence.plus and Sequence.minus operations.
2015-07-17 10:54:54 +03:00
Ilya Gorbunov
8ac613dd67
Fix docs for String.partition
...
#KT-8493 Fixed
2015-07-17 10:54:40 +03:00
Ilya Gorbunov
fbd0c16551
Merging arrays without creating iterators.
2015-07-17 10:54:28 +03:00
Ilya Gorbunov
b5b6e2e598
Usages of Array.plus: return type changed.
2015-07-17 10:54:16 +03:00
Ilya Gorbunov
9d120dcd44
Provide minus and minusAssign for iterables, collections, sets, sequences.
...
removeAll and retainAll special case optimizations.
#KT-3721 Fixed
#KT-7466 Fixed
2015-07-17 10:53:18 +03:00
Ilya Gorbunov
048a3ebcc1
Implement plus for sequence as operand and refactor plus tests.
2015-07-17 10:53:05 +03:00
Ilya Gorbunov
a7bf415ad5
plus: do not generate ambiguos overloads.
2015-07-17 10:51:35 +03:00
Ilya Gorbunov
d89af24d6c
Variance of arrays sorted out.
...
Use concat for array + 1 in JS.
2015-07-17 10:51:22 +03:00
Ilya Gorbunov
7866184eb6
Array.plus — different implementations for JVM and JS.
...
Array.copyOf, copyOfRange available in JS.
2015-07-17 10:51:09 +03:00
Ilya Gorbunov
c883df544c
Make plus operation to be strict binary or right external binary for Sets and Arrays.
2015-07-17 10:50:58 +03:00
Ilya Gorbunov
b30a4eb75b
Fix maven build: remove unused kdoc imports
2015-07-17 10:26:25 +03:00
Dmitry Jemerov
649287b689
remove KDoc support in Kotlin Gradle plugin
2015-07-16 15:04:17 +02:00
Ilya Gorbunov
0a320a13e5
Stdlib generators: change constants for Long: ZERO, ONE, -ONE.
2015-07-15 17:21:52 +03:00
Ilya Gorbunov
10c376975a
Stdlib generators: refactor and eliminate warnings, add families of Sets and InvariantArrays, allow to specify custom signature for particular families.
2015-07-15 17:21:43 +03:00
Ilya Gorbunov
96b79eebe7
asSequence returns empty sequence singleton for empty arrays and strings.
...
#KT-8450 Fixed
2015-07-15 17:08:27 +03:00
Denis Zharkov
4479c215d4
Change return type for iterator method of asList impls for *Array
...
These objects implement AbstractList that extending MutableCollection.
After type propagation `iterator` of AbstractList become MutableIterator, so it cannot be overriden with immutable Iterator
2015-07-09 16:36:46 +03:00
Yan Zhulanow
441e72abed
kapt: Add class declarations test in AP wrapper
2015-07-07 16:35:22 +03:00
Yan Zhulanow
c6ac878cf0
kapt: Add inherited annotations test
2015-07-07 16:35:21 +03:00
Yan Zhulanow
700d495d7f
kapt: Support inherited annotations in Gradle
2015-07-07 16:35:21 +03:00
Yan Zhulanow
a90f175fc2
kapt: Support inherited annotations in AP wrapper
2015-07-07 16:35:20 +03:00
Alexander Udalov
feb4dd7b8f
Drop 'OBJECT$' field deprecated in M11
2015-07-06 16:19:54 +03:00
Ilya Gorbunov
f7436064d0
Unify componentN templates and add NOTHING_TO_INLINE suppression.
2015-07-03 16:38:10 +03:00
Ilya Gorbunov
9618a3542f
Provide getOrElse and getOrNull methods for indexed collections.
...
Breaking: elementAtOrElse is no longer inlined for Iterables and Sequences.
#KT-6952
2015-07-03 16:38:08 +03:00
Ilya Gorbunov
4660b07687
StdLib cleanup: drop deprecated iterators and streams.
2015-06-29 17:06:45 +03:00
Ilya Gorbunov
6d4e48ab9a
Compiler&plugin deprecations cleanup: string operations.
2015-06-29 17:06:43 +03:00
Ilya Gorbunov
35166f44ae
StdLib deprecations cleanup: string operations.
2015-06-29 17:06:41 +03:00
Ilya Gorbunov
f3a19ebe11
StdLib deprecations cleanup: length, size, indices and other collection operations.
2015-06-29 17:06:20 +03:00
Ilya Gorbunov
00a44f6d4f
StdLib deprecations cleanup: *array -> *arrayOf, copyToArray -> toTypedArray.
2015-06-29 17:05:57 +03:00
Sergey Mashkov
ab5d8d12ea
IDL2K declarations order stability
2015-06-23 17:21:13 +03:00
Sergey Mashkov
0e518e46bb
JS and IDL2K: make dictionary builder functions public
2015-06-22 12:57:23 +03:00
Ilya Gorbunov
a80f65cfd9
Do not create empty list when reversing empty collection or array — use singleton empty list instead.
...
#KT-8099 Fixed
2015-06-19 19:41:10 +03:00
Yan Zhulanow
d0897193e8
kapt: Use actual classpath in the second Kotlin task as well
2015-06-19 02:29:13 +03:00
Yan Zhulanow
5f85a028ae
kapt: Fix ConcurrentModificationException in Gradle
2015-06-19 02:29:13 +03:00
Yan Zhulanow
d9ac8c9d22
kapt: Pass annotation declarations options via Java APT options
2015-06-19 02:29:12 +03:00