Ilya Gorbunov
3088586ac3
Add runnable samples for trimIndent and trimMargin.
...
#KT-9786 Fixed
2017-03-22 21:54:46 +03:00
Alexander Udalov
7dfa3bea18
Update tools & libraries projects to use JDK 8 when needed
2017-03-21 17:45:53 +03:00
Ilya Gorbunov
87c055cc61
Fix progression iterators to respect the Iterator contract.
...
#KT-16923 Fixed
2017-03-20 20:13:54 +03:00
Ilya Gorbunov
e5a28311bc
Fix infinite sequence being terminated prematurely when being iterated without calling hasNext
...
#KT-16922 Fixed
2017-03-20 20:13:54 +03:00
Mikhail Glukhikh
045a23ae10
Cleanup: apply "Convert lambda to reference"
2017-03-15 17:36:02 +03:00
Ilya Gorbunov
b83b534374
Add missing SinceKotlin to IntStream.toList.
2017-03-07 18:22:11 +03:00
Ilya Gorbunov
61e8848aa2
Add samples for sequence building API.
2017-03-07 13:32:39 +03:00
Ilya Gorbunov
a04e6de047
Add groupingBy and eachCount sample.
2017-03-07 13:31:44 +03:00
Ilya Gorbunov
75ae42121b
Improve sample comments.
...
Improve sample for lastIndex property.
2017-03-07 13:31:44 +03:00
Dmitry Jemerov
322379e6ae
Assorted stdlib KDocs
2017-03-01 16:09:01 +01:00
Alexander Udalov
abbbdb5771
Update KotlinVersion.CURRENT to 1.1.2
2017-02-28 20:24:33 +03:00
Roman Elizarov
266d7c15fe
Documentation for createCoroutine/createCoroutineUnchecked
2017-02-27 16:48:24 +03:00
Ilya Gorbunov
c0c01d6e49
Drop HIDDEN deprecations from kotlin-stdlib.
2017-02-22 17:28:02 +03:00
Ilya Gorbunov
fee676a281
Introduce 'takeUnless' function which is like 'takeIf' but with the predicate inverted.
...
#KT-7858
2017-02-13 16:07:34 +03:00
Ilya Gorbunov
e9f40c41c2
Minor: refactor and rename parameters.
2017-02-08 20:16:10 +03:00
Ilya Gorbunov
31da36bedf
Minor: Add test cases for adding and removing null value to/from set.
...
Fix unused value in removeAll test.
2017-02-08 20:13:22 +03:00
Ilya Gorbunov
fc7b1c8611
KDoc for mutable abstract collections.
...
Document abstract overrides.
2017-02-08 20:13:22 +03:00
Ilya Gorbunov
ef5e53b37b
KDoc for read-only abstract collections
2017-02-08 20:13:22 +03:00
Roman Elizarov
5895c211a1
Fixed corotine context performance by using reference equality for contexts and keys
...
Added documentation explaining that keys are compared by reference
2017-02-07 19:33:46 +03:00
Denis Zharkov
9697196473
Put startCoroutineUninterceptedOrReturn header to common stdlib
2017-02-07 11:08:27 +03:00
Denis Zharkov
4f6a77cf38
Introduce createCoroutineUnchecked intrinsic
...
Also use it for buildSequence implenentation
#KT-16155 Fixed
2017-02-07 11:08:27 +03:00
Roman Elizarov
9a71a20ad6
Docs for startCoroutineUninterceptedOrReturn
2017-02-07 11:07:04 +03:00
Denis Zharkov
230564fb4a
Minor. Get rid of code duplications for resume call wrapping in stdlib
...
Use processBareContinuationResume instead
2017-02-07 11:07:04 +03:00
Denis Zharkov
6dde567be4
Optimize startCoroutine impls, move them to common stdlib
...
Do not wrap initial continuation for startCoroutine in SafeContinuation
This changes leaves only internal declarations and intrinsics as platform
dependent parts of the coroutine library, the rest parts (public API)
is implemented through them in common module
2017-02-07 11:07:04 +03:00
Denis Zharkov
a65d86293b
Improve coroutines library layout
...
- Split CoroutinesLibrary into common and JVM parts
- Get rid of startCoroutine duplications
- Make suspendCoroutine implementation to be platform independent
2017-02-07 11:07:04 +03:00
Denis Zharkov
258ee0db75
Introduce startCoroutineUninterceptedOrReturn coroutine intrinsic
...
#KT-15716 Fixed
2017-02-07 11:07:04 +03:00
Denis Zharkov
29b0b30031
Make createCoroutine return a safe continuation
...
#KT-15718 Fixed
2017-02-07 11:06:50 +03:00
Ilya Gorbunov
af443ac046
Search java version in java.specification.version, prepare to that starting from java 9 it will contain only a single component.
2017-02-03 17:52:13 +03:00
Ilya Gorbunov
33f3106157
Do not use Math in common code.
2017-01-30 19:44:51 +03:00
Ilya Gorbunov
4ac7be9fa5
Retract bitwise operators from builtins for Byte and Short and add them as extensions in kotlin.experimental package in stdlib.
...
#KT-16030
2017-01-30 18:54:59 +03:00
Dmitry Jemerov
8968d5663d
Minor fixes for stdlb kdoc
2017-01-30 16:13:49 +01:00
Anton Bannykh
77aa685496
JS: char boxing
2017-01-30 16:31:44 +03:00
Ilya Gorbunov
7195e26ae2
Rollback Closeable.use implementation as it was in 1.0 in order not to call functions that were introduced in 1.1 from this inline function.
...
#KT-16026
2017-01-29 02:41:12 +03:00
Roman Elizarov
a1571657f3
Updated test to experimental package
2017-01-27 23:24:13 +03:00
Roman Elizarov
8dc318dd92
Fixed KT-15963 (coroutines machinery should not use equals on results)
2017-01-27 23:24:13 +03:00
Denis Zharkov
c362a9154b
Rename SUSPENDED_MARKER to COROUTINE_SUSPENDED
2017-01-27 23:24:13 +03:00
Denis Zharkov
246946bc18
Move buildSequence/buildIterator to kotlin.coroutines.experimental
2017-01-27 23:24:13 +03:00
Denis Zharkov
68fc6fa217
Support non-CoroutineImpl instances in createCoroutine
2017-01-27 23:24:13 +03:00
Denis Zharkov
8fa8ba7055
Move coroutine-related runtime parts to kotlin.coroutines.experimental package
...
#KT-15975 Fixed
2017-01-27 23:24:13 +03:00
Denis Zharkov
cb4914ab56
Make 'suspendCoroutineOrReturn' inline-only
2017-01-27 23:24:13 +03:00
Denis Zharkov
0e132b9857
Move all coroutine-related declarations from built-ins to stdlib
...
Also move internal declarations from runtime.jvm module into new package
kotlin.coroutines.jvm.internal in stdlib
The necessity of these declarations being in built-ins is controversial,
but also it will complicate the migration of current coroutine runtime
to a separate jar if we ever need this
2017-01-27 23:24:13 +03:00
Ilya Gorbunov
dbaf31effe
sourceDirs exclude the original test dir, so add it explicitly.
2017-01-27 14:53:33 +03:00
Ilya Gorbunov
01f53d0173
Return NaN as an average of an empty collection.
...
#KT-15399 Fixed
2017-01-27 14:53:33 +03:00
Ilya Gorbunov
661ff81e67
Specify names for parameters of functional types with two or more parameters to ease lambda completion.
...
#KT-13826
2017-01-27 14:46:29 +03:00
Ilya Gorbunov
2e0209395a
Restore Map.minus(key/keys) and Map.minusAssign(key/keys) operators.
...
#KT-13353
2017-01-25 22:08:46 +03:00
Ilya Gorbunov
288e0b3c7e
Allow to use Regex matches CharSequence and CharSequence matches Regex in infix form
...
#KT-14279
2017-01-25 21:31:42 +03:00
Ilya Gorbunov
19dd7ee09e
Build kotlin-test after kotlin-stdlib, build kotlin-test sources with kotlin-stdlib tests again
2017-01-24 22:04:46 +03:00
Ilya Gorbunov
7ccaa77c5b
Shade kotlin-runtime into kotlin-stdlib
2017-01-24 22:04:46 +03:00
Ilya Gorbunov
a603de8bd7
Ensure string to number conversion fails on empty and blank inputs.
...
#KT-4497
2017-01-24 07:22:58 +03:00
Ilya Gorbunov
4e5e14c9a0
Provide string-to-number conversions in JS and common stdlib.
...
Relates to #KT-8286
#KT-4497 Fixed
2017-01-24 07:20:57 +03:00