Ilya Gorbunov
781ca6d2b5
Inline swap function, do not use deprecated floor.
2017-10-12 06:06:26 +03:00
Pap Lorinc
e640867238
Provide java.util.Collections#shuffle as extensions for collections in JS
...
#KT-2460
2017-10-12 06:06:26 +03:00
Ilya Gorbunov
aab604d154
Improve math docs
...
Add links from log to ln, log2, log10.
Format lists in docs so that they are pretty in quick doc window.
2017-10-12 05:58:04 +03:00
Ilya Gorbunov
aa3bfc55c3
Implement in JS nextUp(), nextDown(), nextTowards() and ulp extensions
...
#KT-4900
2017-10-11 19:20:24 +03:00
Ilya Gorbunov
132f2f88c2
Provide Double and Float bit conversion functions as extensions in JS and Common
...
Instance extension: Double/Float.toBits/toRawBits
Companion extension: Double/Float.Companion.fromBits
#KT-18264 Fixed
2017-10-11 19:20:24 +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
5bfa9b248e
Minor fixes in logarithm functions docs
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
a8fef3a385
Provide MutableList.fill for JS, annotate new API with @SinceKotlin
...
#KT-8823 #KT-9010
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
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
Mikhail Zarechenskiy
1845a87813
Provide no-arg constructors for common expected annotations in stdlib
...
This is needed because we treat `expect` classes as not having implicit default constructors (see more in KT-15522, f3344ec )
2017-10-09 18:50:38 +03:00
Ilya Gorbunov
0898897057
Remove crossinline restriction from synchronized in js and common
...
#KT-20596 Fixed
2017-10-04 19:15:33 +03:00
Stanislav Erokhin
481cbd0850
Migrate header to expect in libraries projects
2017-09-16 19:47:45 +03:00
Stanislav Erokhin
7cd5eeb24d
Regenerate common stdlib: use 'expect' instead 'header'
2017-09-16 19:47:44 +03:00
Alexander Udalov
d1cff41ce0
Treat nested class of header class as header
...
Note that the quick fix to implement header class works incorrectly when
that class has nested classes at the moment; this should be fixed
separately
#KT-15494 Fixed
#KT-18573 Fixed
2017-08-25 15:40:37 +03:00
Ilya Gorbunov
ef72371fd7
Add samples for contentToString and contentDeepToString array operations
2017-05-03 17:44:30 +03:00
Ilya Gorbunov
f22375601b
Remove unneeded suppressions
2017-04-18 12:47:11 +03:00
Ilya Gorbunov
8f452ed046
Cleanup warnings in stdlib and generated code
2017-04-18 12:47:04 +03:00
Ilya Gorbunov
609355a311
Provide kotlin.AssertionError in kotlin-stdlib-common
...
Remove related workarounds from kotlin-test-common
2017-04-06 20:32:37 +03:00
Ilya Gorbunov
c98c2d9931
Remove 'nearly_stateless' category, do not mention statefulness for terminal operations.
...
#KT-16994
2017-03-24 19:06:06 +03:00
Ilya Gorbunov
4018db680e
Sequence operation classification regarding their statefulness and laziness.
...
#KT-16994 Fixed
2017-03-24 19:06:06 +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
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
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
8fa8ba7055
Move coroutine-related runtime parts to kotlin.coroutines.experimental package
...
#KT-15975 Fixed
2017-01-27 23:24:13 +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
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
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
Ilya Gorbunov
a429992e81
Do not generate headers for JS-only functions.
2017-01-18 22:16:49 +03:00
Ilya Gorbunov
3225ec8935
Provide headers for coroutine building blocks
2017-01-14 20:14:00 +03:00
Ilya Gorbunov
80f2efb625
joinTo/joinToString: Do not call toString on elements that are already CharSequence or Char.
...
#KT-15557
2017-01-13 19:49:57 +03:00
Ilya Gorbunov
0c27e07e8c
Improve headers of Appendable and StringBuilder
2017-01-13 19:41:59 +03:00
Ilya Gorbunov
afdc7b94da
Add headers for print and println.
...
#KT-15458 fixed
2017-01-13 19:41:59 +03:00
Ilya Gorbunov
be95f66b13
Minor: remove unnecessary header.
2017-01-13 19:41:59 +03:00
Ilya Gorbunov
cdfb72ab76
Provide protected toArray implementation in AbstractCollection.
...
Relates to #KT-13898
2017-01-13 19:38:28 +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
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
3bf38e62c8
Add a note about NaN propagation for floating point specializations.
2017-01-11 14:45:21 +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
844c68286a
Refactor: replace Math.min with minOf in common code.
...
Add temporary import of kotlin.comparisons where required.
2017-01-11 14:42:36 +03:00
Ilya Gorbunov
51c24a0c3c
Introduce minOf/maxOf in kotlin.comparisons. #KT-7417
2017-01-11 14:42:36 +03:00