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
Ilya Gorbunov
6197c5bf7f
Add sample for coerceIn with floating point range
...
#KT-20357
2018-01-11 09:05:28 +03:00
Ilya Gorbunov
8fc83e3ff5
Add samples for coerceIn, coerceAtLeast, coerceAtMost for comparable types
...
#KT-20357
2018-01-11 09:05:28 +03:00
shiraji
17573a3c21
Add samples for coerceIn
...
#KT-20357
2018-01-11 09:05:28 +03:00
shiraji
4559da9848
Add samples for coerceAtMost
...
#KT-20357
2018-01-11 09:05:28 +03:00
shiraji
db607e231c
Add samples for coerceAtLeast
...
#KT-20357
2018-01-11 09:05:27 +03:00
kenji tomita
1db0e5c23e
Add samples for reversed list views
...
#KT-20357
2018-01-11 09:05:27 +03:00
AdamMc331
2fc26ba08f
Added samples for property delegates as part of KT-20357.
2018-01-11 09:05:27 +03:00
Ilya Gorbunov
c8bd623d69
Samples: add some operations to do with the constructed ranges
2018-01-10 15:32:51 +03:00
kenji tomita
4cb2b12f01
Add samples for range construction operators
2018-01-10 15:32:50 +03:00
Andre Perkins
31d650a041
Add sample for emptySet
2018-01-10 15:32:50 +03:00
Ilya Gorbunov
496df371f4
Provide the guide for sample authoring
2017-12-29 20:42:46 +03:00
Vladimir Kasatkin
9b49e9139c
Added samples for map filtering operators (KT-20357)
...
Fix map transformations sample names.
2017-11-15 23:58:51 +03:00
Ilya Gorbunov
dca23e339a
Improve iterator samples, add explanatory comments (KT-20357)
2017-11-15 23:58:49 +03:00
kenji tomita
4d13ea89b2
Add samples for iterator-related extensions (KT-20357)
2017-11-15 23:39:07 +03:00
Ilya Gorbunov
f51974b271
Minor fix in comparison samples #KT-20357
2017-11-10 23:32:20 +03:00
scache
96e322c7d5
Add samples for Comparisons #KT-20357
2017-11-10 23:32:06 +03:00
Ilya Gorbunov
e16a0ba650
Improve and group samples for operations on Iterables #KT-20357
2017-11-10 23:31:50 +03:00
kenji tomita
75348dd0c0
Add samples for Iterables #KT-20357
2017-11-10 23:31:31 +03:00
Ilya Gorbunov
e8e09dbbf8
Various improvements in collection samples #KT-20357
...
Merge some related samples,
add sample for building a sequence from Enumeration similar to building a list from Enumeration.
2017-10-26 21:28:47 +03:00
Alexey Belkov
72354559e5
Provide samples for list, collection and array related functions #KT-20357
2017-10-26 21:28:47 +03:00
Ilya Gorbunov
559255f38e
windowed function: add default parameters, drop or keep partial windows, KEEP-11
...
Make step default to 1.
Add partialWindows boolean parameter defaulting to false to control
whether to keep partial windows in the end.
2017-10-11 19:20:24 +03:00
Ilya Gorbunov
c04b0072af
Rename pairwise to zipWithNext, KEEP-11
2017-10-11 19:20:24 +03:00
Ilya Gorbunov
99bd54116e
Docs and samples for 'windowed' function
2017-10-11 19:20:24 +03:00
Ilya Gorbunov
b2f2e3537b
Docs and samples for 'chunked' function
2017-10-11 19:20:24 +03:00
Ilya Gorbunov
e418f61f0c
Docs and samples for 'pairwise' function
2017-10-11 19:20:24 +03:00