Ilya Gorbunov
a8b11ff07b
Make MutableMap.set return Unit
...
#KT-7853 Fixed
2015-11-11 19:00:10 +03:00
Ilya Gorbunov
3639afafce
Deprecated with ERROR preconditions with eager message.
2015-11-11 19:00:03 +03:00
Ilya Gorbunov
be9b14545f
Drop deprecations and tighten up left ones.
2015-11-11 18:59:53 +03:00
Ilya Gorbunov
5b484f1e05
Make emptyMap upperbound to be Any? rather than Any.
...
#KT-9963
2015-11-11 17:14:41 +03:00
Ilya Gorbunov
f7135dfe50
Do not override default AbstractList iterator() implementation for primitiveArray.asList wrappers.
...
#KT-9927 Fixed
2015-11-11 16:41:39 +03:00
Ilya Gorbunov
0786027271
Deprecate Range<T> in generated code.
...
Provide hidden overloads of downTo and until with byte and short parameters for binary compatibility.
2015-11-11 03:53:52 +03:00
Ilya Gorbunov
af9020a010
Update Range and Progression built-in implementations in js library.
...
No need to define special method mapping for js ranges/progressions.
Support progression companion objects' function fromClosedRange as intrinsic
2015-11-11 03:53:51 +03:00
Ilya Gorbunov
6bac3e1986
Drop Ranges, Progressions, ProgressionIterators for Double and Float.
...
Undeprecate generic Comparable.rangeTo, but return private implementation instead.
Undeprecate contains and coerceIn for generic ranges.
2015-11-11 03:53:47 +03:00
Ilya Gorbunov
4d2f9b82da
reversed() behavior changed for progressions. Stepped progression behavior changes: 'end' property is now deprecated, use 'last' instead.
2015-11-11 03:53:45 +03:00
Ilya Gorbunov
5ebb3d20e8
Change internal implementation of progression: use first, last instead of start, end
...
Keep the end value as it was passed to progression constructor.
Deprecate primary progression constructor and introduce factory method in companion object.
2015-11-11 03:53:40 +03:00
Ilya Gorbunov
25da037868
Update range iteration tests and regenerate test data.
2015-11-11 03:53:37 +03:00
Ilya Gorbunov
854d376988
Eliminate byte and short ranges and progressions from range construction functions' return type.
2015-11-11 03:53:29 +03:00
Ilya Gorbunov
8bdd1e3246
Sorting optimizations: do not make excessive copies, introduce methods to sort the whole array.
...
#KT-9904 Fixed
2015-11-11 03:29:40 +03:00
Ilya Gorbunov
3e81cdfc5d
Deprecate mapIndexedTo for Maps.
2015-11-11 03:12:19 +03:00
Ilya Gorbunov
9323f61eaf
Introduce T.addTo(MutableCollection<T>), mapNotNull and mapIndexedNotNull extensions.
...
#KT-4410 Fixed
2015-11-11 03:12:17 +03:00
Ilya Gorbunov
008a8059cf
Introduce filterIndexed
...
#KT-9502 Fixed
2015-11-11 02:42:52 +03:00
Ilya Gorbunov
ee759c10c8
Minor: regenerate docs.
2015-11-11 02:42:50 +03:00
Ilya Gorbunov
ee46ec1126
Drop deprecated threading extensions.
2015-11-06 01:12:11 +03:00
Ilya Gorbunov
70fdc379ef
Drop deprecated Delegates.lazy and blockingLazy and ObservableProperty constructor-like function
2015-11-06 01:12:07 +03:00
Ilya Gorbunov
219e69be22
Drop deprecated join function.
...
#KT-6909 Fixed
2015-11-06 01:12:05 +03:00
Ilya Gorbunov
f9bfeb0f32
Doc templating: name things properly
2015-11-06 00:46:05 +03:00
Ilya Gorbunov
cb79aadb9d
Accept out-projections of arrays for unzip.
2015-11-06 00:37:01 +03:00
Sergey Mashkov
29973d714e
Remove DOM utilities, put temporary to JS to keep compatibility
2015-11-05 14:41:28 +01:00
Sergey Mashkov
77d3db635b
Remove browser.document
2015-11-05 14:17:44 +01:00
Ilya Gorbunov
1a0c2e2cf6
In-place sorting.
...
#KT-9034
2015-11-05 09:04:31 +03:00
Ilya Gorbunov
5e9b7b9e60
Collections.sort without comparator now uses natural order.
...
#KT-9771 Fixed
2015-11-05 09:03:30 +03:00
Ilya Gorbunov
d5edbfd005
Refactoring: do not use own classes for nullsFirst and nullsLast wrappers of natural order.
2015-11-05 09:03:29 +03:00
Ilya Gorbunov
fa261a7697
Add override for default method of Comparator from JDK8
2015-11-05 09:03:07 +03:00
Ilya Gorbunov
2b676e08bc
Introduce naturalOrder<T> and reverseOrder<T> comparators.
2015-11-05 09:03:05 +03:00
Ilya Gorbunov
83fef68876
Add more cases to array in-place reversing test.
...
Add array of objects case to all reversing tests.
2015-11-05 09:03:03 +03:00
Ilya Gorbunov
4fc54a12b8
In-place reversing.
...
#KT-9034
2015-11-05 09:02:58 +03:00
Ilya Gorbunov
1400bdc09a
Do not allow removeSurrounding remove overlapping prefix and suffix.
2015-11-04 22:19:59 +03:00
Ilya Gorbunov
05fd2b012a
Provide overloads both for Strings and CharSequences of filter, filterNot, reversed and partition
2015-11-04 22:19:57 +03:00
Ilya Gorbunov
62d6bcaa6d
Provide overloads both for Strings and CharSequences of removePrefix, removeSuffix, removeSurronding, trim* and pad*, replaceRange & removeRange
2015-11-04 22:19:55 +03:00
Ilya Gorbunov
2ed611e2c5
Docs corrections.
2015-11-04 22:19:52 +03:00
Ilya Gorbunov
0dd7e398c7
Use reverse indexed iteration in last and lastOrNull with predicate for CharSequences and Strings.
2015-11-04 22:19:50 +03:00
Ilya Gorbunov
8c16fad8b1
Make more string tests cross-platform.
2015-11-04 22:19:48 +03:00
Ilya Gorbunov
d021a324aa
Test CharSequence extension methods both for String and StringBuilder
2015-11-04 22:19:43 +03:00
Ilya Gorbunov
64338e896d
Use CharSequence in split, splitToSequence, lines
2015-11-04 22:19:41 +03:00
Ilya Gorbunov
8c5ac26613
Use CharSequence in repeat and joinToString.
2015-11-04 22:19:39 +03:00
Ilya Gorbunov
b4b84a38d5
Use templating in the docs for generated code to name things properly.
2015-11-04 22:19:37 +03:00
Ilya Gorbunov
5b055ac663
Preserve type of subsequence in drop* and take* operations.
...
Validate argument of drop (required in JS, more meaningful exception in JVM)
2015-11-04 22:19:35 +03:00
Daniel Rothmaler
67229401c6
Add set operator to make the work with StringBuilder more list-like.
...
Make StringBuilder.set jvm-only.
Move jvm-specific test.
2015-11-04 22:19:33 +03:00
Ilya Gorbunov
e155e426c2
Implement CharSequence.regionMatches and generalize depending String extensions to take CharSequence.
...
Add hidden declarations for replaced overloads with String receiver in hand-written code.
2015-11-04 22:19:31 +03:00
Ilya Gorbunov
47560d3db1
Add hidden declarations for replaced overloads with String receiver in hand-written code.
2015-11-04 22:19:29 +03:00
Ilya Gorbunov
59b67b32c4
Add hidden declarations for replaced overloads with String receiver in generated code.
2015-11-04 22:19:27 +03:00
Ilya Gorbunov
935e606b64
Generalize String extensions to take CharSequence as receiver and parameters where applicable: generated code.
...
Exclude Strings family from default families.
2015-11-04 22:19:26 +03:00
Ilya Gorbunov
4a621cbb5f
Generalize String extensions to take CharSequence as receiver and parameters where applicable.
2015-11-04 22:19:24 +03:00
Ilya Gorbunov
05615dd48b
Introduce String.toByte()
...
#KT-8833 Fixed
2015-11-04 22:19:22 +03:00
Ilya Gorbunov
9bbe0d67ff
Do not treat directory with copied test sources for js library as source root, as it confuses debugger under certain circumstances.
...
Remove duplicated test.
2015-11-04 22:19:20 +03:00