Ilya Gorbunov
22c4d30a89
Correct docs of ThreadLocal and SharedImmutable annotations
...
- clarify that they have effect only in K/N
- correct possible application targets of SharedImmutable
KT-36245
2020-05-23 22:28:46 +03:00
Svyatoslav Kuzmich
6e3d3831c2
[JS] JsExport diagnostics and legacy support
...
Account for JsExport in legacy backend namer. It means we
catch overloaded exported function conflicts for free!
Add error diagnostics:
* NESTED_JS_EXPORT (Fixes KT-36798)
* WRONG_EXPORTED_DECLARATION (Part of the fix for KT-37752)
* NON_EXPORTABLE_TYPE (Fixes KT-37771)
2020-05-22 10:50:22 +03:00
Dmitry Borodin
dd46d5ca5a
Add sample for Map.flatMap
2020-05-19 19:24:00 +03:00
Dmitry Borodin
1a0b59da49
KT-20357 Add sortedBy() sample ( #3283 )
2020-05-19 19:21:21 +03:00
Segun Famisa
d6a8003743
Add samples for String/CharSequence filter & filterNot ( #3390 )
...
* Add samples for String/CharSequence filter & filterNot
* Link samples to stdlib generator
2020-05-18 23:15:41 +03:00
Ilya Gorbunov
25f83e941c
Fix sample reference for unsigned array range sort
2020-05-18 20:37:11 +03:00
Abduqodiri Qurbonzoda
0c7b04a495
Document fromIndex and toIndex parameters #KT-38388
2020-05-09 23:34:03 +03:00
Abduqodiri Qurbonzoda
d6472aa700
Reverse range and sortDescending range #KT-36955
2020-04-20 22:06:28 +03:00
Dmitry Petrov
b06780988d
KNVE: add doc comment and mark as PublishedApi
2020-04-20 20:07:51 +03:00
Abduqodiri Qurbonzoda
4d7597fa5a
Document 'reduce' operation behavior on empty collections #KT-23322
2020-04-20 03:37:12 +03:00
Abduqodiri Qurbonzoda
0d5ec27ac4
toHashSet is suboptimal for inputs with a lot of duplicates #KT-23142
2020-04-19 07:58:49 +03:00
Ilya Gorbunov
893021f22b
Introduce runningFold and runningReduce operations
...
runningFold is a synonym for scan,
runningReduce replaces scanReduce.
#KT-38060
2020-04-15 23:28:07 +03:00
Ilya Gorbunov
38b1e6beab
Make Throwable.printStackTrace() common
...
#KT-38044
2020-04-13 09:32:42 +03:00
Ilya Gorbunov
408b441a71
Rename extension toStringWithTrace to stackTraceToString
...
#KT-37603
2020-04-13 09:32:42 +03:00
Ilya Gorbunov
552bcdb31b
Introduce Throwable.toStringWithTrace
...
#KT-37603
2020-04-13 09:32:41 +03:00
Ilya Gorbunov
7b7263c5bf
Implement common Throwable.addSuppressed/suppressed extensions
...
Instead of `suppressed` Array we provide `suppressedExceptions` List
#KT-23737
2020-04-13 09:32:41 +03:00
Abduqodiri Qurbonzoda
f2c05bf82c
IR: Move annotation @JsExport to common source set in stdlib #KT-35966
2020-04-11 04:03:57 +03:00
Abduqodiri Qurbonzoda
4a7b1b210a
Add onEachIndexed similar to forEachIndexed #KT-37161
2020-04-11 03:47:47 +03:00
Ilya Gorbunov
15319eb88e
Implement in-place shuffle for arrays
...
Minor: reorder shuffle/shuffled extensions more consistently
#KT-25651 Fixed
2020-04-10 11:04:51 +03:00
Dmitry Petrov
9941c255b9
KT-30330 KotlinNothingValueException
2020-04-10 08:47:02 +03:00
Abduqodiri Qurbonzoda
508d0edd6d
Add the onEach extension function to the Array #KT-28290
2020-04-07 05:34:20 +03:00
Ilya Gorbunov
d88d2cb058
Test new Double/Float constants
...
Split test expectations based on actual support of enforced Float range
KT-29182, KT-13887
2020-04-02 04:04:04 +03:00
n-p-s
7bb7c86fa9
Add samples for partition
2020-03-31 02:04:55 +03:00
Ilya Gorbunov
dd2aa3de28
Add sample for filterNot and improve sample for filter
2020-03-31 02:04:55 +03:00
Brian Plummer
f887a29279
Add sample for filter
2020-03-31 02:04:55 +03:00
adammc331
840f222867
Add sample for filterNotNull
2020-03-31 02:04:55 +03:00
Scott Weber
e8ee405cdb
Add sample for text version of chunked
2020-03-31 02:04:55 +03:00
Ilya Gorbunov
e8dff3609b
Add @ExperimentalUnsignedTypes to unsigned array snapshot extensions
2020-03-26 23:30:19 +03:00
Abduqodiri Qurbonzoda
b1fac4e721
Implement reduceIndexedOrNull and reduceRightIndexedOrNull #KT-36866
2020-03-12 18:08:55 +03:00
Abduqodiri Qurbonzoda
b60633d79a
Add associateWith to Array<T> #KT-30372
2020-03-12 18:06:54 +03:00
Abduqodiri Qurbonzoda
e632d58936
Nullable Array.contentEquals/contentHashCode/contentToString #KT-34161
2020-03-12 18:01:23 +03:00
Alexander Udalov
787e4503e5
Migrate -Xuse-experimental -> -Xopt-in in project sources
2020-03-10 12:07:15 +01:00
Abduqodiri Qurbonzoda
d5c851980c
String.toBoolean() should be String?.toBoolean() #KT-14119
2020-03-05 17:53:29 +03:00
Abduqodiri Qurbonzoda
1f721796b8
Add vararg overloads for maxOf/minOf functions #KT-33906
2020-02-26 04:17:19 +03:00
Abduqodiri Qurbonzoda
2566fbea87
toMutableList documentation is vague #KT-35231
2020-02-20 18:52:10 +03:00
Abduqodiri Qurbonzoda
f9ee1dc22d
Specify which element Iterable.distinctBy(selector) retains #KT-36356
2020-02-20 18:50:13 +03:00
Mikhail Zarechenskiy
155b716e7e
Revert "Disable NewInference for stdlib tests"
...
This reverts commit cdf5323f8c .
2020-02-17 10:29:46 +03:00
Yan Zhulanow
73813aef23
Pill: Support all Gradle source sets, not just main/test
2020-02-14 17:35:15 +09:00
Mikhail Zarechenskiy
cdf5323f8c
Disable NewInference for stdlib tests
...
There is one failing test namely `ValByMapExtensionsTest.doTest`, which
is quite questionable because its checks the use of out projection and
Exact annotation (see KT-18789)
2020-02-13 11:15:56 +03:00
Abduqodiri Qurbonzoda
ed7b8e9b85
Scan functions for Sequences and Iterable #KT-7657
2020-02-13 04:01:47 +03:00
Ilya Gorbunov
7792613f88
Finishing touch: drop experimental coroutines sourcesets from stdlib
...
#KT-36083
2020-01-29 09:12:42 +03:00
Ilya Gorbunov
b5a0daabc3
Extract kotlin.coroutines.experimental API into compat artifact
...
Add public API dump for kotlin-coroutines-experimental-compat
#KT-36083
2020-01-29 09:12:39 +03:00
Abduqodiri Qurbonzoda
1203df7405
Deprecate floating point to integral types lesser than Int #KT-30360
2020-01-22 23:27:35 +03:00
Abduqodiri Qurbonzoda
3cad1bbb51
Create method Collection.randomOrNull() #KT-35347
2020-01-16 22:25:53 +03:00
Ilya Gorbunov
09b1960dd0
Regenerate stdlib sources: update copyright year
2020-01-16 15:57:06 +03:00
Tillmann Berg
95300ae31d
KT-20357: Add sample for reduce, reduceRight and their indexed counterparts
2019-12-26 19:57:33 +03:00
Alfredo Delli Bovi
9546307243
Add sample for reduceOrNull and reduceRightOrNull
2019-12-26 19:27:46 +03:00
Alfredo Delli Bovi
06008c40ab
KT-33761 Add reduceRightOrNull
2019-12-26 19:27:46 +03:00
Alfredo Delli Bovi
f5d696d3c4
KT-33761 Add reduceOrNull
2019-12-26 19:27:46 +03:00
Tillmann Berg
cf86dc9a89
KT-20357: Add sample for Collections distinct and distinctBy methods
2019-12-11 07:42:05 +03:00