Dmitriy Novozhilov
90ec84d7b7
[Stdlib] Update copyrighting in generated stdlib sources
2023-03-27 10:46:11 +00:00
Takumi Maeomote
c4f83adc2a
Add sample for Map.asSequence ( #5055 )
2022-12-15 19:58:38 +03:00
Ilya Gorbunov
0d0cc9250b
Note about all() result on empty collections KT-54835
2022-11-25 14:09:09 +00:00
Ilya Gorbunov
60fbb0d171
Reintroduce min/max operations for non-empty collections KT-50146
2022-04-04 22:33:24 +00:00
Ilya Gorbunov
906a351a81
Regenerate standard library generated code
2022-01-17 15:38:27 +03:00
Abduqodiri Qurbonzoda
7e1cd757fb
Advance max/min(By/With) deprecation level to HIDDEN #KT-38854
2021-09-16 19:38:35 +03:00
Abduqodiri Qurbonzoda
b0f1ddc91e
Advance max/min(By/With) deprecation level to ERROR
2021-04-07 07:49:23 +03:00
Abduqodiri Qurbonzoda
ff5b2404af
Introduce firstNotNullOf and firstNotNullOfOrNull #KT-12109
2021-03-12 09:27:14 +03:00
Alexander Udalov
acd29481bd
Regenerate sources of builtins and stdlib
2021-01-03 22:31:06 +01:00
Ilya Gorbunov
4767696840
Qualify replacement expression with receiver to workaround KT-42874
2020-11-12 05:29:39 +03:00
Elijah Verdoorn
41d5615608
Add samples for mapNotNull, find, getOrNull functions
2020-08-10 03:39:49 +03:00
Ilya Gorbunov
87cb6372a0
Specify DeprecatedSinceKotlin for recently deprecated min/max funs
...
#KT-38854
2020-07-16 22:58:25 +03:00
Abduqodiri Qurbonzoda
a04f70fb36
Fix min/maxByOrNull function samples
2020-06-26 07:16:01 +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
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
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
Dmitry Borodin
dd46d5ca5a
Add sample for Map.flatMap
2020-05-19 19:24:00 +03:00
Abduqodiri Qurbonzoda
4a7b1b210a
Add onEachIndexed similar to forEachIndexed #KT-37161
2020-04-11 03:47:47 +03:00
Ilya Gorbunov
09b1960dd0
Regenerate stdlib sources: update copyright year
2020-01-16 15:57:06 +03:00
Dmitry Borodin
664d69b752
Add flatMap sample KT-20357
2019-11-29 17:35:06 +03:00
Benjamin Orsini
3e39f26379
Add map() documentation sample
...
* docs: add map() sample
* docs: add samples for Map and CharSequence
* docs: add another sample for Maps.map()
2019-05-20 19:20:09 +03:00
nikita.movshin
abb7d3ab46
Update copyright.
...
Change the copyright from "JetBrains s.r.o." to
"JetBrains s.r.o. and Kotlin Project contributors"
Update 2 lines comment
2019-04-23 20:09:27 +03:00
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
Ilya Gorbunov
fcef876c7e
Update copyright in generated stdlib sources
2019-01-11 19:23:12 +03:00
Karen Schwane
d88fd8aa6f
KT-20357 Add samples for maxBy and minBy
2018-11-04 22:34:16 +03:00
Alexander Udalov
55c8b35eee
Remove unneeded default imports in stdlib and tests
2018-10-01 13:39:02 +02:00
Ilya Gorbunov
ea2c33a532
Extension random() to select random element from a collection
...
Fixes #KT-15539
2018-08-30 16:21:27 +03:00
Ilya Gorbunov
357c5be4fb
Make sure index and count do not overflow for long sequences
...
Throw an exception immediately before an overflow becomes observable.
Place check to prevent negative index from indexOf, indexOfFirst.
Do not insert overflow checks for arrays, lists, maps and char sequences.
#KT-16097
2018-08-30 14:57:05 +03:00
Ilya Gorbunov
502418e690
Put copyrights to the generated standard library sources
...
Read copyright template from .idea/copyright/apache.xml profile
2018-04-26 21:57:50 +03:00
Ilya Gorbunov
69ebb3bfb0
Switch to the new stdlib source generation scheme
...
Remove old generated sources for stdlib-jvm and stdlib-js
2018-04-12 17:53:00 +03:00
Ilya Gorbunov
70236d4824
Build standard library for JVM from a single source set
...
Add explicit imports for kotlin.* and kotlin.text.* to prevent typealiases
conflicting with their aliased types from default imports.
2018-04-12 17:53:00 +03:00
Yuta Sakata
4926b5a4c0
Add samples for any, all and none
...
Rewrite samples to make them working on sample generator
Move location of the class that contains samples of Aggregates.kt
2018-02-19 18:44:28 +03:00
Stanislav Erokhin
7cd5eeb24d
Regenerate common stdlib: use 'expect' instead 'header'
2017-09-16 19:47:44 +03:00
Ilya Gorbunov
b72e5c038d
Generate common headers to common/src/generated
2016-12-16 04:36:29 +03:00