Abduqodiri Qurbonzoda
35c6f09886
Implement coerce extension functions for unsigned types
2019-03-15 17:46:48 +03:00
Ilya Gorbunov
6bc7c06038
Add samples for is(|Not|NullOr)Empty and is(|Not|NullOr)Blank functions
2019-03-13 17:58:05 +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
Yaroslav Russkih
9ac52fad17
Use https everywhere - documentation and samples
2019-02-19 21:35:36 +01:00
Ilya Gorbunov
ce577ac06b
Minor: remove redundant imports in sample
2019-02-18 21:09:18 +03:00
Kevin Peek
565727e302
KT-20357 - Add sample for Regex.findAll()
2019-02-18 21:05:46 +03:00
Dave Leeds
6ff3ae3447
KT-20357: Add samples for commonPrefixWith and commonSuffixWith
2018-12-05 19:21:57 +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
12a31637d1
Improve groupingBy samples
2018-09-28 19:59:30 +03:00
Ilya Gorbunov
3a40e3f041
Move groupingByEachCount together with the new Grouping samples
2018-09-28 19:51:07 +03:00
Itsuki Aoyagi
039d41679e
Add samples for groupingBy operations
2018-09-28 19:51:07 +03:00
ymnder
1a20b1f357
Add sample for 'repeat' function
...
Co-authored-by: Ilya Gorbunov <ilya.gorbunov@jetbrains.com >
2018-09-26 22:39:56 +03:00
shiraji
0c97d99d77
KT-20357 Add sample code for Regex.find
...
Co-authored-by: Ilya Gorbunov <ilya.gorbunov@jetbrains.com >
2018-09-26 22:24:53 +03:00
takattata
f06ea6fddd
KT-20357 Add sample code for Char extensions
2018-09-26 21:58:50 +03:00
Takayuki Matsubara
d26c0f777b
KT-20357 Add samples for Map.containsValue
...
Co-authored-by: Ilya Gorbunov <ilya.gorbunov@jetbrains.com >
2018-09-26 21:03:57 +03:00
Keita Watanabe
12ec4fdce0
KT-20357 Add sample for mutableSet function
2018-09-26 20:44:40 +03:00
Ilya Gorbunov
df6ccbca49
KT-20357 Add samples for elementAtOrElse
...
Move samples to Elements nested class.
2018-09-26 20:44:40 +03:00
Takayuki Matsubara
7d5efe7f51
KT-20357 Add samples for elementAtOrNull
2018-09-26 20:44:40 +03:00
Takayuki Matsubara
ad9b700ec4
KT-20357 Add samples for elementAt
2018-09-26 20:44:40 +03:00
Yuki Miida
af1fc5b668
Add sample for orEmpty method
2018-09-26 05:54:40 +03:00
Ilya Gorbunov
aac96c476a
Rename sequence and iterator builder functions and their scope class
...
This introduces new functions instead of the existing sequence builders:
- `sequence` instead of `buildSequence`
- `iterator` instead of `buildIterator`
- `SequenceScope` instead of `SequenceBuilder`
The old functions were deprecated with error and made inline-only, and `SequenceBuilder` has been
made a deprecated typealias to `SequenceScope`.
Move sequence builders to `SequencesKt` facade class.
Replace sequence builder usages in stdlib and samples.
#KT-26678
2018-09-16 23:30:35 +03:00
Ilya Gorbunov
9c812c6e2b
Use new coroutines in samples
2018-09-16 23:30:32 +03:00
victor.petukhov
63698380e1
Add contract samples for stdlib
2018-09-11 18:03:09 +03:00
Ilya Gorbunov
e670318cf0
ifEmpty and isBlank extensions
...
- Introduce ifEmpty extension for Collections, Maps, Arrays, Sequences
- Introduce ifEmpty and isBlank for CharSequences
#KT-15695 Fixed
2018-08-30 16:20:42 +03:00
Ilya Gorbunov
f367322084
Introduce associateWith and associateWithTo functions
...
#KT-13814
2018-08-30 14:58:14 +03:00
Ilya Gorbunov
e59141e32c
Replace kotlin-stdlib-jreN usages in tests and samples
2018-08-30 14:57:56 +03:00
Ilya Gorbunov
cd0906a357
Improve isNullOrEmpty() extensions
...
- Annotate with SinceKotlin("1.3") and InlineOnly
- Add contract linking the receiver and the returned value
- Unify wording in docs
- Add sample for Map.isNullOrEmpty
#KT-23279
2018-08-30 14:51:02 +03:00
Mon_chi
d0788148e2
Add isNullOrEmpty() to Array, Collection, and Map. Fixes KT-23279
2018-08-30 14:51:00 +03:00
Jeff Wright
292f69936b
Add Collections.isNullOrEmpty #KT-23279
2018-08-30 14:50:58 +03:00
Toshiaki Kameyama
c4b785de36
Add Sequence.orEmpty #KT-16552 Fixed
2018-08-30 14:50:54 +03:00
Ilya Gorbunov
ed1f869354
Add xorwow random implementation test and fix implementation
2018-08-30 14:50:46 +03:00
Ilya Gorbunov
cc031e3a40
Provide common Random API
...
#KT-17261
2018-08-30 14:50:36 +03:00
Ilya Gorbunov
bbee18b84d
Introduce StringBuilder.clear() extension
...
#KT-18910 Fixed
2018-08-30 14:50:29 +03:00
Ilya Gorbunov
7c996dc218
Improve padStart/padEnd samples
2018-08-09 04:38:22 +03:00
Gen
a90b72ffd8
KT-20357 Add samples for padStart() and padEnd()
2018-08-09 04:38:22 +03:00
takasy
76a98c8e67
KT-20357 Add sample code for Pair/Triple.toList
2018-08-07 21:27:16 +03:00
Bloder
f89803fe8f
Create samples for String.toLowerCase/toUpperCase
...
* Create toLowerCase method sample
* Create toUpperCase method sample
* Create toUpperCase sample reference in StringsJVM
* Create sample ref and doc of js impl toUpperCase
* Create sample ref and docs of js toLowerCase
* Add sample ref in toLowerCase expect fun
* Add sample ref in toUpperCase expect fun
2018-08-06 15:34:57 +03:00
Valeriy Zhirnov
9239de9a02
KT-22298 Improve docs for Array.copyOf(newSize: Int)
...
Signed-off-by: Valeriy Zhirnov <neonailol@gmail.com >
2018-05-25 21:52:36 +03:00
Ilya Gorbunov
ecf0d7ec0d
Reformat stdlib tests and samples
...
#KT-5558
2018-04-27 05:28:57 +03:00
Swapnil Sankla
b93e385181
Add sample for setOf method
...
Ilya Gorbunov: Improve sample to illustrate stable iteration order and set equality.
2018-04-20 06:03:05 +03:00
Ilya Gorbunov
0eae27e03f
Add samples for zip on sequences and strings
2018-04-20 02:00:36 +03:00
TakuyaKodama
2d4e591b5d
Add samples for zip on arrays and collections
...
Write the sample references in the template and run the generator
2018-04-20 02:00:36 +03:00
gzoritchak
1c1fe10e12
Add samples for take* and drop* extensions (KT-20357)
...
- Add samples for take, takeLast, takeWhile, takeLastWhile
- Add samples for drop, dropLast, dropWhile, dropLastWhile
2018-02-20 19:24:27 +03:00
Ilya Gorbunov
2028ec3ce8
Minor improvements in all/any/none samples
...
Extract variables to make assertion expression shorter.
2018-02-19 18:44:28 +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
gzoritchak
f790635b30
Add samples for joinTo
...
KT-20357
2018-02-18 20:12:05 +03:00
gzoritchak
40e3159463
Add samples for joinToString
...
KT-20357
2018-02-18 20:12:05 +03:00