Ilya Gorbunov
04bbf23936
Add explicit imports of kotlin.ranges more specific functions
...
The extensions 'contains' and 'reversed' from kotlin.ranges can be more
specific for IntRange, LongRange, etc than the same functions from
kotlin.collections, yet they lose in overload resolution to the latter
ones when invoked from kotlin.collections package
because of same package package extensions are preferred (KT-30633).
2019-04-02 21:28:33 +03:00
Toshiaki Kameyama
4a3e4f099d
KT-30451 Redundant call of selector in maxBy&minBy
...
Refactor maxBy & minBy: do not call selector when collection has single item
2019-03-31 05:11:05 +03:00
Ilya Gorbunov
b74fe7c1c3
Clarify floor and ceil docs (KT-30418)
2019-03-19 03:12:12 +03:00
Abduqodiri Qurbonzoda
35c6f09886
Implement coerce extension functions for unsigned types
2019-03-15 17:46:48 +03:00
Ilya Gorbunov
edc766af56
Document exception thrown for negative n in take/takeLast/drop/dropLast
...
#KT-29151
2019-03-13 17:58:19 +03:00
Abduqodiri Qurbonzoda
ba61695a45
Check for index-out-of-bound in elementAt function (KT-30051)
2019-03-12 21:39:09 +03:00
Ilya Gorbunov
42120b93b8
KT-29151 Provide specialized string samples for all drop/take functions
...
These include:
- take, takeLast, takeWhile, takeLastWhile,
- drop, dropLast, dropWhile, dropLastWhile
2019-03-11 19:30:59 +03:00
Burak Eregar
991e739693
KT-29151 Fix the problematic pages - CharSequence.take() & String.take()
2019-03-11 19:30:58 +03:00
Ilya Gorbunov
6ae5e91930
Move UArraysKt into kotlin.collections.unsigned package
...
Provide UArraysKt class in kotlin.collections for binary compatibility
instead of removed multipart facade class. It contains only non-inline
functions of the latter.
2019-03-08 23:35:40 +03:00
Ilya Gorbunov
db4c4132f6
Make JvmPackageName a common internal annotation
2019-03-08 23:35:37 +03:00
Abduqodiri Qurbonzoda
be6c2d8c7d
Implement min max minOf maxOf functions for unsigned types (KT-30035)
2019-03-08 23:34:36 +03:00
Abduqodiri Qurbonzoda
bf83f0e070
Implement contains extension functions for URanges (KT-26378)
2019-03-08 23:34:35 +03:00
Abduqodiri Qurbonzoda
cb587893c0
Implement sorting extension functions for UArrays
2019-03-08 23:34:35 +03:00
Abduqodiri Qurbonzoda
c42dbb34ca
Implement drop, take & filter extension functions for UArrays
2019-03-08 23:34:35 +03:00
Abduqodiri Qurbonzoda
abb275775e
Implement map, flatMap, zip & groupBy extension functions for UArrays
2019-03-08 23:34:35 +03:00
Abduqodiri Qurbonzoda
503264b996
Implement folding extension functions for UArrays
2019-03-08 23:34:35 +03:00
Abduqodiri Qurbonzoda
7695b5e575
Implement sum extension function for UArrays (KT-28779)
2019-03-08 23:34:34 +03:00
Abduqodiri Qurbonzoda
690e35f11a
Implement reduce, forEach, min & max extension functions for UArrays
2019-03-08 23:34:34 +03:00
Abduqodiri Qurbonzoda
fc85781bfc
Implement asList, slice & sliceArray extension functions for UArrays
2019-03-08 23:34:34 +03:00
Abduqodiri Qurbonzoda
114736c09b
Implement reversing extension functions for UArrays
2019-03-08 23:34:34 +03:00
Abduqodiri Qurbonzoda
92cd84682c
Implement first, last & single extension functions for UArrays
2019-03-08 23:34:34 +03:00
Abduqodiri Qurbonzoda
299fac8e2d
Implement conversion from typed array and collection to UArrays
2019-03-08 23:34:34 +03:00
Abduqodiri Qurbonzoda
bbaabb90e4
Implement any, all, none, count & sumBy functions for UArrays
2019-03-08 23:34:33 +03:00
Abduqodiri Qurbonzoda
512d986006
Implement index-requesting extension functions for UArrays
...
Contains implementations of `indexOf`, `lastIndexOf`, `indexOfFirst`,
`indexOfLast`, `lastIndex` and `indices` extension functions.
2019-03-08 23:34:33 +03:00
Abduqodiri Qurbonzoda
6b92190726
Implement component(N) functions for destructuring UArrays
2019-03-08 23:34:33 +03:00
Abduqodiri Qurbonzoda
6cd9858147
Specialize plus operator for UArrays (KT-28397)
2019-03-08 23:34:32 +03:00
Kevin Peek
565727e302
KT-20357 - Add sample for Regex.findAll()
2019-02-18 21:05:46 +03:00
Vyacheslav Gerasimov
14d9ec9fb2
Build: Use javadocJar helper to specify artifact explicitly
...
Creating javadocJar task for every project produces lots of unnecessary
tasks, some project don't even have code. Jar task without outDir
property set fails idea import with gradle 5.0+
2019-02-18 19:59:36 +03:00
Ilya Gorbunov
0ac85ad715
Document that sorting is stable in each platform
...
#KT-12473 Fixed
2019-01-17 18:38:37 +03:00
Ilya Gorbunov
23950042f6
Clarify how elements of arrays are compared by contentEquals function
...
Add clarification only for the particular group of overloads including
arrays of object and floating point numbers.
#KT-22942 Fixed
2019-01-11 21:04:03 +03:00
Ilya Gorbunov
fcef876c7e
Update copyright in generated stdlib sources
2019-01-11 19:23:12 +03:00
Pavel Punegov
122ec85bf0
Add ThreadLocal and SharedImmutable native annotations as OptionalExpectation
...
to kotlin.native.concurrent
2019-01-11 17:38:58 +03:00
Ilya Gorbunov
30c769c19a
Avoid hitting max argument limit in String(chars)
...
Rewrite CharArray to String conversions to appending chars one by one.
Refine parameter checking in String(chars, offset, length) to adhere to
the common exception contract and document it.
#KT-29003
2019-01-10 23:35:52 +03:00
Ilya Gorbunov
9289a2c573
Remove redundant clause from 'until' function docs
2018-12-26 17:54:56 +03:00
Ilya Gorbunov
5c94ef229b
Move release coroutines sources into the corresponding stdlib sourcesets
2018-11-28 06:05:03 +03:00
Ilya Gorbunov
ec3692026d
Rename coroutines sourceset to coroutinesExperimental
...
Restore experimental coroutine tests as they were before e22ca022
and compile and run them twice:
- first time with LV=1.2
- second time with LV=1.3
2018-11-28 06:05:02 +03:00
Ilya Gorbunov
cff32e46bb
Provide expect declarations for String.startsWith/endWith overloads
...
Mark the existing declarations as actual.
2018-11-22 19:17:24 +03:00
Ilya Gorbunov
3d2a3cddff
Stop producing empty kotlin-stdlib-coroutines jar
2018-11-21 03:42:27 +03:00
Ilya Gorbunov
5f4e8bf4fb
Correct abstract mutable collections declarations in kotlin-stdlib-common
...
Add SinceKotlin(1.3) to the new and substantially changed common declarations
#KT-28091
2018-11-09 13:39:44 +03:00
Ilya Gorbunov
4f2ec3533a
Remove inline modifier from expect functions without lambda or reified types
...
This gives more flexibility when providing actuals for them.
2018-11-09 13:39:07 +03:00
Ilya Gorbunov
b026b9eb22
Remove +ReleaseCoroutines explicit feature enabling
...
It's enabled by default in Kotlin 1.3
2018-11-09 04:00:26 +03:00
Ilya Gorbunov
a64a76d5fc
Remove experimental coroutines opt-in from build scripts
...
It has no effect in Kotlin 1.3
Only enable coroutines if '-ReleaseCoroutines' is used
2018-11-09 04:00:26 +03:00
Karen Schwane
d88fd8aa6f
KT-20357 Add samples for maxBy and minBy
2018-11-04 22:34:16 +03:00
Ilya Gorbunov
c8caed5b6f
Duplicate MutableList.add docs in AbstractMutableList.add
...
Because the documentation inheritance doesn't work as desired here.
2018-10-23 22:21:25 +03:00
Ilya Gorbunov
a1c0c679ee
Common String.toNumber: clarify thrown exception types
2018-10-22 17:14:45 +03:00
Ilya Gorbunov
7fc6f06b70
Correct parameter reference in copyInto docs
2018-10-22 17:14:44 +03:00
Ilya Gorbunov
ebe9d59df7
Unify print/println/readLine docs
2018-10-22 17:14:44 +03:00
Ilya Gorbunov
406bd7c980
Minor: split math sources into regions
2018-10-22 17:14:44 +03:00
Nikolay Krasko
e3d930a6a1
Build maven-like stdlib sources artifacts during dist
...
This is needed to emulate gradle and maven like projects in plugin tests.
2018-10-12 18:50:04 +03:00
Ilya Gorbunov
d6beddaac5
Document the requirement for 'minus(elements)' to have stable hashCode
...
#KT-24536
2018-10-01 18:09:09 +03:00