Alexander Udalov
31e762c679
Move 1.3-specific part of stdlib to another source set
2018-02-15 13:14:37 +01:00
Alexander Udalov
0bf0a315ed
Introduce Experimental and UseExperimental annotations
...
#KT-22759 In Progress
2018-02-08 17:07:21 +01:00
Ilya Gorbunov
9305903e6c
Remove deprecated pairwise function
...
It was replaced with zipWithNext.
2017-11-07 18:59:33 +03:00
Ilmir Usmanov
817f79520a
Implement coroutineContext intrinsic
...
This intrinsic allows coroutine to access its context without suspention
and, furthermore, disabling tail-call optimization.
KT-17609: Fixed
2017-11-02 12:45:24 +03:00
Ilya Gorbunov
3ab7946c4d
Introduce apiVersionIsAtLeast function to branch in inlines
...
#KT-16028
2017-10-13 18:56:05 +03:00
Ilya Gorbunov
044ccf1532
Introduce inverse hyperbolic functions
...
#KT-4900
Improve accuracy of JS polyfills of hyperbolic functions and expm1/log1p
2017-10-11 19:20:24 +03:00
Ilya Gorbunov
57f5791e70
Annotate new API with SinceKotlin, provide common headers
...
#KT-4900
Also update binary API dump.
2017-10-11 19:20:24 +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
c2cee2e405
Update binary api dump, rearrage bignumbers tests
2017-10-11 19:20:24 +03:00
Ilya Gorbunov
bb22d6647b
Introduce MutableList.fill and shuffle/shuffled extensions for JVM only
...
'shuffle' and 'fill' are inline only, but 'shuffled' is not.
#KT-8823 Fixed
#KT-9010 Fixed
2017-10-11 19:20:24 +03:00
Ilya Gorbunov
16d3d2f764
Make Regex class serializable on JVM
...
#KT-16447 Fixed
Refactor helper functions for serialization tests.
2017-10-11 19:20:24 +03:00
Ilya Gorbunov
a3a1c391cc
Generate 'chunked' and 'windowed' signatures and delegating implementations
...
Add implementations of windowed.
2017-10-11 19:20:24 +03:00
Ilya Gorbunov
c815ccfd6a
Introduce 'pairwise' function, KEEP-11
2017-10-11 19:20:24 +03:00
Roman Elizarov
9f0810f723
Pull implementations up from AbstractCoroutineContextElemenet
...
Fixes KT-18671
2017-07-19 08:59:43 +03:00
Denis Zharkov
970dfd10d4
Update rendered public API for coroutines
...
suspendCoroutine is not public anymore as it's inline
and all inline suspend functions are treated as inline-only,
i.e. private in JVM
2017-05-23 18:45:33 +03:00
Denis Zharkov
eedc35aefd
Drop new coroutine-related API introduced in 1.1.4
...
See 49453ca705 for clarification
#KT-17898 Fixed
2017-05-22 14:51:04 +03:00
Denis Zharkov
57cb556efd
Update rendered public API in coroutines package
...
- suspendCoroutine is not public anymore, since all of the
inline functions are generated as private
- `label` is public to allow update it from the named functions
2017-05-16 11:38:59 +03:00
Ilya Gorbunov
c0c01d6e49
Drop HIDDEN deprecations from kotlin-stdlib.
2017-02-22 17:28:02 +03:00
Ilya Gorbunov
03cdc20d64
Update public API dump: new coroutine builder intrinsics
2017-02-07 14:42:00 +03:00
Ilya Gorbunov
970490e097
Revert "Update rendered public API". This reverts commit a10c6f00f9.
...
Revert "Update stdlib reference and binary compatibility test data". This reverts commit 2d02e5106f .
2017-02-07 14:41:31 +03:00
Denis Zharkov
a10c6f00f9
Update rendered public API
2017-02-07 11:32:10 +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
Alexander Udalov
2d02e5106f
Update stdlib reference and binary compatibility test data
...
After 0db60bf and 5cffb38
2017-02-06 19:39:15 +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
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
2e0209395a
Restore Map.minus(key/keys) and Map.minusAssign(key/keys) operators.
...
#KT-13353
2017-01-25 22:08:46 +03:00
Ilya Gorbunov
ed9b9d972c
Make 'add' function abstract in AbstractMutableSet in JVM
2017-01-18 20:07:24 +03:00
Roman Elizarov
25739a08ea
CoroutineContext Key and Element are now inside CoroutineContext interface itself (just like Map.Entry)
...
ContinuationInterceptor companion object is named Key
CoroutineContext.Element property for key is named just key
AbstractCoroutineContextElement implements all of CoroutineContext.Element, including key
2017-01-16 14:33:02 +03:00
Ilya Gorbunov
3d70d73964
Rename file class CoroutinesLibraryKt to CoroutinesKt
2017-01-15 20:57:11 +03:00
Ilya Gorbunov
141ad43039
Introduce buildSequence and buildIterator functions based on coroutines.
2017-01-14 20:14:01 +03:00
Ilya Gorbunov
2dfcb490a5
Fix CoroutineContext tests, update public API dump
2017-01-14 13:24:53 +03:00
Ilya Gorbunov
6273ab5d43
Hold back eachSumOf for a while: fixups.
...
Remove unneeded import.
2017-01-11 20:04:00 +03:00
Ilya Gorbunov
04a0f0a036
Rename Grouping.elementIterator to sourceIterator
2017-01-11 16:49:45 +03:00
Ilya Gorbunov
2a2b417025
KEEP-23 implement group and fold operations
...
Docs for group-and-fold operations
Fix implementation for countEach and sumEachBy
countEach and sumEachBy implementations for JS
Rename keySelector to keyOf
Generate additional sources for groupingBy + headers
Rename countEach and sumEachBy to eachCount and eachSumOf.
2017-01-11 16:49:45 +03:00
Ilya Gorbunov
0bf2ba8701
Introduce new overloads of max and min to fix NaN propagation behavior on JVM.
2017-01-11 14:45:18 +03:00
Ilya Gorbunov
51c24a0c3c
Introduce minOf/maxOf in kotlin.comparisons. #KT-7417
2017-01-11 14:42:36 +03:00
Ilya Gorbunov
35d433160e
Move more logic of 'use' into 'closeSuppressed', rename the latter to 'closeFinally', that will result in more compact inline call expansions.
2017-01-11 14:35:38 +03:00
Ilya Gorbunov
a71b68268d
Refactor exception suppression to provide Throwable.addSuppressed extension in kotlin-stdlib.
...
Place Closeable and AutoCloseable extensions to separate files (CloseableKt and AutoCloseableKt).
#KT-15477 Fixed
2017-01-11 14:35:38 +03:00
Ilya Gorbunov
822e58ad83
Map.getOrImplicitDefault is exposed public as Map.getValue
...
#KT-11851
2016-12-29 07:49:27 +03:00
Ilya Gorbunov
10f8e70322
Rename ClosedComparableRange to ClosedFloatingPointRange
2016-12-19 18:36:52 +03:00
Ilya Gorbunov
236333e475
Update public API dump for coroutines rev. 2
2016-12-16 04:28:32 +03:00
Ilya Gorbunov
bc944961f1
Use internal published-api function to validate radix in string-number conversion functions.
...
#KT-8286
2016-12-14 17:20:44 +03:00
Ilya Gorbunov
ea77673dde
Reimplement coerceIn to range with new range functions: lessThanOrEquals.
2016-12-08 20:50:26 +03:00
Ilya Gorbunov
d60fc7d9a8
Introduce ClosedComparableRange interface which inherits ClosedRange to provide special comparison operation for double and float.
2016-12-08 20:50:11 +03:00
Ilya Gorbunov
4721dcd07c
Add specialization overloads for Float.rangeTo and Double.rangeTo to resolve them statically.
2016-12-08 20:49:10 +03:00
Ilya Gorbunov
dc57d69085
Improve onEach templates.
...
Add new functions to reference API.
Add tests for onEach
#KT-8220
2016-11-30 16:46:56 +03:00