Miguel Serra
4fa5e2d85c
KT-20357: Add samples for linkedSetOf
2019-12-26 20:07:39 +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
Tillmann Berg
cf86dc9a89
KT-20357: Add sample for Collections distinct and distinctBy methods
2019-12-11 07:42:05 +03:00
Ilya Gorbunov
555d503ff9
Improve indexOf sample to showcase return value handling
...
Remove sample reference from indexOf(Char) overload: both overloads are on
the same page, and showing the sample for indexOf(String) under indexOf(Char)
is redundant and misleading.
2019-11-29 21:34:49 +03:00
Burak Eregar
e30d87ee01
KT-20357: Add samples for indexOf
2019-11-29 21:34:49 +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
Yanis Batura
e9e3df23fc
Fix typos and improve grammar in stdlib readmes ( #2527 )
...
* Fix typos in the main ReadMe.md
* Fix typos in the stdlib samples ReadMe.md
Co-Authored-By: ilya-g <ilya.gorbunov@jetbrains.com >
2019-08-16 19:56:56 +03:00
Ilya Gorbunov
4fc942c5e9
KT-16602: Improve mutable sorting samples, fix sample references
2019-07-12 21:34:54 +03:00
Dat Trieu
38d26b1d92
KT-16602: Provide samples for sorting API usage
2019-07-12 21:32:03 +03:00
keijumt
3f5d64e635
Add sample of hashMapOf
2019-07-12 17:10:15 +03:00
Ilya Gorbunov
58b04c7974
Add remaining docs for Duration members, runnable samples for toString
2019-06-18 04:02:35 +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
65244b4bea
Update copyright.
...
Change the copyright from "JetBrains s.r.o." to
"JetBrains s.r.o. and Kotlin Project contributors"
Update only 2 lines copyright.
2019-04-23 20:09:22 +03:00
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