Ilya Gorbunov
4f1418bb72
Verify index expectations for reduceIndexed/reduceRightIndexed
2016-01-31 02:45:05 +03:00
Ilya Gorbunov
1357c77d0b
Minor: verify exception type of failed fold/reduce
2016-01-31 02:45:04 +03:00
Gabriel Borges
d58efff974
Add foldIndexed and reduceIndexed groups of functions
...
- foldIndexed, foldRightIndexed, reduceIndexed and reduceRightIndexed have been added, in line with filterIndexed etc.;
- Test cases added appropriately for the new functions.
2016-01-31 02:45:02 +03:00
Ilya Gorbunov
d46501e11b
Make all remaining deprecations to be errors.
2016-01-27 18:34:32 +03:00
Ilya Gorbunov
4296b7f882
Breaking: make copyTo return target file instead of its size.
2016-01-27 00:29:09 +03:00
Ilya Gorbunov
8d02467e6d
Introduce plusElement and minusElement to disambiguate situations like List<List<T>> + List<T>
...
#KT-9992 Fixed
2016-01-27 00:00:01 +03:00
Ilya Gorbunov
23080f78f7
Map.getOrPut: treat nulls as missing values.
2016-01-26 11:49:18 +03:00
Ilya Gorbunov
a49db730a9
Map.getOrElse: treat nulls as missing values.
2016-01-26 11:49:17 +03:00
Ilya Gorbunov
90a239e74c
Provide toMutableList as a replacement for toArrayList.
2016-01-26 11:49:15 +03:00
Ilya Gorbunov
564155734b
Introduce associateTo and associateByTo with the destination MutableMap to fill.
2016-01-26 11:49:12 +03:00
Ilya Gorbunov
e41bf687d9
Deprecate toLinkedMap
2016-01-26 11:49:10 +03:00
Ilya Gorbunov
8224a4e186
Rename toMap and toMapBy to associate and associateBy
2016-01-26 11:49:03 +03:00
Ilya Gorbunov
45c9cc4add
Breaking: Change File.copyTo contract to be similar to Files.copy from JDK8.
2016-01-26 11:49:02 +03:00
Ilya Gorbunov
67663c43ae
Introduce overwrite parameter to File.copyRecursively.
...
#KT-8924 Fixed
2016-01-26 02:26:33 +03:00
Ilya Gorbunov
7703252239
Provide groupBy and groupByTo with keySelector and valueTransform.
...
Rename parameters of groupBy, add type parameter for MutableMap to groupByTo.
2016-01-25 21:15:56 +03:00
Ilya Gorbunov
a78b08d9c7
Use generic coerceIn for nullable primitives, provide specialization for non-nullable ones.
...
Fix docs for coerceAtMost.
2016-01-24 06:44:13 +03:00
Ilya Gorbunov
f5f5a2dcc1
Move progression final element test to stdlib tests.
...
Less values are tested for iteration not to timeout in js tests.
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
8bf638c60f
Drop deprecations: FileTreeWalk deprecated API elements.
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
e9c14a02d3
Make FilePathComponents internal, temporary disable tests of internal API
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
c1ad82ff8c
Harden charset-as-string taking function deprecations.
...
Fix usages in compiler.
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
b39b29dfea
Drop deprecations: io and threading functions.
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
d1a5988bfc
Drop deprecations: complicated map delegates and kotlin.support.AbstractIterator.
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
85a02d40c6
Drop hidden declarations provided for binary compatibility
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
91f4cf0ebc
Drop Progression<T> and its deprecated properties: start, end, increment.
...
Drop deprecated range extensions.
Make progression constructors private.
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
6dd8470835
Drop deprecated primitive ranges and progressions: for Byte and Short
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
300a4be060
Deprecate Map.minus and minusAssign operators.
...
Disable tests failing in JS.
2016-01-22 01:13:33 +03:00
Ilya Gorbunov
7896e58afc
Rename sequence function to generateSequence
2016-01-22 01:13:31 +03:00
Ilya Gorbunov
dbcad08a35
Regex: MatchResult.groupValues do not exclude zeroth group, use the same indices as in groups collection.
...
Provide destructured property for destructured assignment.
2016-01-22 00:59:13 +03:00
Ilya Gorbunov
3459a24b0a
Regex: Introduce MatchResult.groupValues to get list of numbered group values exlcuding zeroth group with the entire match.
2016-01-22 00:56:08 +03:00
Ilya Gorbunov
5bbce7a1de
Deprecate 'comparator { ... }' in favor of Comparator SAM-constructor. Provide SAM-like constructor for JS.
2016-01-18 21:46:32 +03:00
Ilya Gorbunov
67ef790abc
Move comparison related functions to kotlin.comparisons, update imports in stdlib.
2016-01-18 21:46:31 +03:00
Ilya Gorbunov
aafd79078f
Provide mutableSetOf and mutableMapOf
...
#KT-9663 Fixed
2016-01-18 21:46:29 +03:00
Ilya Gorbunov
fe8ba4d356
Provide mutableListOf.
...
Deprecate linkedListOf.
#KT-9663
2016-01-18 21:46:28 +03:00
Ilya Gorbunov
57dcbe0aea
Cleanup in libraries and tools: use property access syntax.
2016-01-17 15:52:14 +03:00
Ilya Gorbunov
19a4f65fd1
Cleanup in libraries
2016-01-17 15:52:12 +03:00
Ilya Gorbunov
d64882e19b
File.useLines and Reader.readLines.
2016-01-14 18:30:45 +03:00
Ilya Gorbunov
b99e1111f6
Do not use out projection for Array where appropriate.
2016-01-14 18:30:40 +03:00
Ilya Gorbunov
ea3a2eefe7
File.deleteRecursively returns true even if path specified by File does not exist.
...
False is returned only in case of incomplete deletion.
Distinguish situations when file was not deleted because it's vanished after listing and because of some other error.
2016-01-14 18:14:12 +03:00
Ilya Gorbunov
5e6489f1a2
Minor: refactor file utils test not to use 'assert' to make test assertions. Use assertTrue, assertFalse, assertEquals, assertFailsWith instead.
2016-01-14 18:14:11 +03:00
Ilya Gorbunov
de11ed4fc6
Primitive Companion objects do not longer implement IntegerConstants and FloatingPointConstants. All declarations moved inside companions.
...
IntegerConstants and FloatingPointConstants are dropped.
#KT-8897 Fixed
2015-12-24 06:17:03 +03:00
Mikhail Glukhikh
99a32b93fb
Implemented missed checks for local functions #KT-10449 Fixed
...
Relevant code/test fixes
2015-12-23 18:22:32 +03:00
Stanislav Erokhin
1574dc78df
Synthetic extensions wins against top-level extension.
2015-12-18 22:49:25 +03:00
Sergey Mashkov
149ce70ce2
Move testing from stdlib to js.stdlib
2015-12-18 22:16:04 +03:00
Ilya Gorbunov
03816373b3
Primitive array constructor-like functions with init lambda.
...
#KT-8831
Update testData and resolve ambiguity in newArray test
2015-12-18 17:54:09 +03:00
Ilya Gorbunov
188119aa83
Prepare to treat keys mapped to null same way as missing keys in Map extensions: getOrElse, getOrPut, getOrImplicitDefault.
2015-12-18 15:24:03 +03:00
Ilya Gorbunov
055c71e8d0
Provide minWith and maxWith to find maximum and minimum values according to the given comparator.
...
#KT-9002 Fixed
2015-12-18 00:00:52 +03:00
Ilya Gorbunov
544bc9a70c
Introduce toMap with key-value pair selector.
...
#KT-6657
2015-12-17 22:50:43 +03:00
Ilya Gorbunov
a4f82a2dc4
Sensible behavior for File.startsWith and File.endsWith
2015-12-14 06:10:26 +03:00
Ilya Gorbunov
d2e22dc794
Fix tests on linux.
...
Add tests for File.startsWith
2015-12-14 06:10:24 +03:00
Ilya Gorbunov
645c78e2f4
Do not use assert in test, use assertTrue or assertEquals
2015-12-14 06:10:22 +03:00