Abduqodiri Qurbonzoda
c923b2e139
Deprecate contains, indexOf, lastIndexOf functions of Float/DoubleArray #KT-28753
2020-06-19 08:39:47 +03:00
Abduqodiri Qurbonzoda
16b62b8e65
Introduce minWithOrNull and maxWithOrNull extension functions #KT-38854
2020-06-19 04:53:53 +03:00
Abduqodiri Qurbonzoda
194791a168
Introduce minByOrNull and maxByOrNull extension functions #KT-38854
2020-06-19 04:53:51 +03:00
Abduqodiri Qurbonzoda
846a7823ad
Introduce minOrNull and maxOrNull extension functions #KT-39064
2020-06-19 04:53:49 +03:00
Ilya Gorbunov
d2ea108123
Make Comparator fun interface in Common and JS
2020-06-17 19:45:15 +03:00
Vyacheslav Gerasimov
8737168d41
Build: Use maven-publish in configurePublishing helper
2020-06-14 20:31:26 +03:00
Vyacheslav Gerasimov
c2589c7d6d
Build: Rename javadocJar for groovy to configureJavadocJar
...
So it doesn't interfere with javadocJar task accessor
2020-06-14 20:31:25 +03:00
Abduqodiri Qurbonzoda
6a2fed33d3
Deprecate old CharArray to String conversion api #KT-31343
2020-06-08 04:12:28 +03:00
Abduqodiri Qurbonzoda
820353ee0e
Promote scanReduce deprecation level to error
2020-06-07 10:05:40 +03:00
Abduqodiri Qurbonzoda
4e820edd1f
Promote randomOrNull, reduceOrNull, scan to stable
2020-06-07 10:05:38 +03:00
Abduqodiri Qurbonzoda
094dbf4c2d
Remove experimental status from Array.associateWith
2020-06-07 10:05:36 +03:00
Abduqodiri Qurbonzoda
46297645a4
Promote String <-> utf8 and CharArray conversions to stable
2020-06-05 18:41:06 +03:00
Dmitry Petrov
de25359a90
Fix stdlib compilation after updated @JvmName check
...
Previously, extension receiver type was not taken into account when
checking for @JvmName annotation applicability to possibly mangled
functions (such functions, however, were mangled).
This bug was fixed, but, unfortunately, not before such functions were
added to stdlib ('sumOf' family).
2020-06-04 12:16:28 +03:00
Ilya Gorbunov
e2c3455445
Document NaN propagation in top-level minOf/maxOf functions
2020-06-02 19:01:44 +03:00
Ilya Gorbunov
d19f9ee0c5
Simplify min/max implementation
2020-06-02 19:01:44 +03:00
Ilya Gorbunov
b4ba00ca36
Document and test NaN propagation of maxOf/minOf
...
Also simplify minOf/maxOf implementations
#KT-38708
2020-06-02 19:01:44 +03:00
Ilya Gorbunov
7b68de38e1
Introduce minOf/maxOf, minOfWith/maxOfWith and their OrNull variants
...
#KT-38708 Fixed
2020-06-02 19:01:44 +03:00
Ilya Gorbunov
6a24becd1d
Introduce sumOf with various selector types
...
#KT-11253
2020-06-02 19:01:43 +03:00
Ilya Gorbunov
bdd53ee9cd
Introduce new overloads of flatMap and flatMapTo
...
- Sequence<T>.flatMap((T) -> Iterable<R>)
- Iterable<T>.flatMap((T) -> Sequence<R>)
- Array<T>.flatMap((T) -> Sequence<R>)
- Map.flatMap((Entry) -> Sequence<R>)
KT-34506
2020-06-02 19:01:43 +03:00
Abduqodiri Qurbonzoda
30037682f8
Revert "Promote String <-> utf8 and CharArray conversions to stable"
...
This reverts commit aba97033
2020-06-01 23:30:55 +03:00
Abduqodiri Qurbonzoda
aba97033f0
Promote String <-> utf8 and CharArray conversions to stable
2020-06-01 22:47:01 +03:00
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