Ilmir Usmanov
0fbbe10143
Support suspendCoroutineUninterceptedOrReturn intrinsic
...
KT-17336: Fixed
2017-11-20 18:12:41 +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
kenji tomita
4d13ea89b2
Add samples for iterator-related extensions (KT-20357)
2017-11-15 23:39:07 +03:00
Ilya Gorbunov
9de6dd814b
Docs: clarifications on LazyThreadSafetyMode
2017-11-15 17:41:43 +03:00
Ilya Gorbunov
27546546fa
Minor: specify explicit name for lambda parameter, use also instead of let
2017-11-15 12:01:22 +03:00
Sergey Ryabov
7fe7b6d6e1
Change FileReadWrite to more idiomatic code
2017-11-15 12:01:22 +03:00
Ilya Gorbunov
dcd0a94d76
Minor: fix extra space in return type of chunked and windowed
2017-11-15 09:17:42 +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
Alexey Belkov
5da1b4c566
Minor: fix sample name (KT-20357)
2017-11-10 23:29:39 +03: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
093f796fc7
Write compiler and stdlib versions from gradle build
2017-11-01 17:26:18 +03:00
Sergey Ryabov
b3b08514c5
Use consistent explicit FileTreeWalk named parameters
2017-10-27 05:38:43 +03:00
Sergey Ryabov
d6504d82b7
Fix the doc for String.format and String.Companion.format
2017-10-27 02:53:09 +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
ace9d0da94
Finalize math function parameter names
...
#KT-4900
2017-10-25 21:30:03 +03:00
Ilya Gorbunov
18d4b91b2d
Minor: improve message from future for use and useLines
...
Annotate RequireKotlin and apiVersionIsAtLeast with SinceKotlin
2017-10-15 21:40:17 +03:00
Ilya Gorbunov
863727955f
Annotate inline use and useLines with RequireKotlin
...
Compiler version 1.2 is required to use 'use' and inline functions from stdlib that call it.
2017-10-13 18:56:05 +03:00
Ilya Gorbunov
cc150ca832
Make Closeable.use call addSuppressed
...
Call addSuppressed when it's provided by the supplementary artifact for jdk7, and only when targeting apiVersion > 1.1
#KT-18961 Fixed
2017-10-13 18:56:05 +03:00
Ilya Gorbunov
3ab7946c4d
Introduce apiVersionIsAtLeast function to branch in inlines
...
#KT-16028
2017-10-13 18:56:05 +03:00
Dmitry Savvinov
edd3f76e7b
Add contract for takeUnless
2017-10-13 18:43:39 +03:00
Dmitry Savvinov
0b88e7cfd0
Annotate contract DSL with @SinceKotlin
2017-10-13 18:43:39 +03:00
Dmitry Savvinov
fb03656e99
Effects: annotate functions in stdlib with contracts
...
build.xml was also changed to incorporate contracts in
mock-runtime-for-tests.jar, because it is using Standard.kt, which, in
turn, has contract-annotated functions.
==========
Introduction of EffectSystem: 17/18
2017-10-12 11:55: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
Anton Bannykh
ac508a510e
JS: Support isInitialized intrisic for lateinit properties
2017-10-11 19:23:49 +03:00
Alexander Udalov
2a8be2cdb4
Move internal declarations in kotlin-stdlib-jdk7/8 to other packages
...
- in kotlin-stdlib-jdk7, package kotlin.internal -> kotlin.internal.jdk7
- in kotlin-stdlib-jdk8, package kotlin.internal -> kotlin.internal.jdk8
2017-10-11 19:23:32 +03:00
Alexander Udalov
00be512532
Revert "Temporarily remove isInitialized and tests, but keep the implementation"
...
This reverts commit 234148518e .
2017-10-11 19:20:24 +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
86b23ffe49
Integer math functions and tests for them
...
#KT-4900
2017-10-11 19:20:24 +03:00
Ilya Gorbunov
a832db48f6
Float Math API
...
#KT-4900
2017-10-11 19:20:24 +03:00
Ilya Gorbunov
f3ea499d2c
JVM-specific math functions and tests
...
#KT-4900
2017-10-11 19:20:24 +03:00
Ilya Gorbunov
7e48f8b180
Provide Double and Float bit conversion functions as extensions
...
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
6373ac7ef0
Rename log to ln, log1p to ln1p, keep pow only as extension
...
#KT-4900
2017-10-11 19:20:24 +03:00
Ilya Gorbunov
805d1c90b7
Rename sgn to sign, add docs and tests
...
#KT-4900
2017-10-11 19:20:24 +03:00
Ilya Gorbunov
d0b12e3872
Use HALF_EVEN rounding mode for round()
...
Add docs and tests for rounding.
#KT-4900
2017-10-11 19:20:24 +03:00
Ilya Gorbunov
5e9e6d5951
Common math tests and document for trigonometric functions and powers.
...
#KT-4900
2017-10-11 19:20:24 +03:00
Ilya Gorbunov
a375bafa21
Draft common math API with top-level functions and constants in kotlin.math package
...
#KT-4900
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
b89e5b2708
Add missing api: radix overloads, mathContext and scale overloads, orNull overloads
...
Move string-to-number conversions and their tests near to existing ones
Add documentation and copyrights.
2017-10-11 19:20:24 +03:00
voddan
e86e080088
KEEP-49: extending Kotlin API for BigInteger and BigDecimal
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
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