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
Abduqodiri Qurbonzoda
1431e27a7b
Move StringBuilder to its own file
2019-12-04 22:15:33 +03:00
Abduqodiri Qurbonzoda
0c033297a8
Move Appendable to its own file
2019-12-04 22:15:33 +03:00
Abduqodiri Qurbonzoda
50752d47fe
Move CharacterCodingException to its own file
2019-12-04 22:15:33 +03:00
Dmitry Borodin
664d69b752
Add flatMap sample KT-20357
2019-11-29 17:35:06 +03:00
Dat Trieu
f334ad2ffc
KT-20357: Add samples for associate* functions ( #2798 )
...
* KT-20357: Add samples for functions related to associate
* KT-20357: Use same fib function for both samples
* KT-20357: Use examples with duplicate keys and simplify examples with primitives
* KT-20357: Use primitive samples for all arrays
* KT-20357: Use String splitting example to better illustrate the use for associate over associateBy with a valueSelector
2019-11-29 16:54:02 +03:00
Abduqodiri Qurbonzoda
834eeb567b
Alter componentN documentation
2019-10-10 05:08:44 +03:00
Abduqodiri Qurbonzoda
e54b405fe4
Fix Iterable, Sequence and String index overflow in windowed
2019-10-09 19:48:39 +03:00
Abduqodiri Qurbonzoda
b4d580fa91
JS: document array destructuring behavior (KT-17544)
2019-10-08 19:24:31 +03:00
Alexander Udalov
25799447a6
Minor, use slightly less internal argument to enable inline classes
2019-09-21 02:03:31 +02:00
Abduqodiri Qurbonzoda
d66f07a84e
CollectionsKt.windowed throws IllegalArgumentException
2019-09-20 00:50:54 +03:00
Abduqodiri Qurbonzoda
63895483fd
Fix take method from iterating one extra element (KT-32024)
2019-08-15 01:01:36 +03:00