Be notified of new releases
Create your free GitHub account today to subscribe to this repository for new releases and build software alongside 28 million developers.Sign up
Breaking change: Java-default method calls
Kotlin interface members overriding Java-default methods while targeting JVM 1.6 now produce an error on super calls requiring to be compiled with
-jvm-target 1.8 option
Revised windowed/pairwise operations
windowedfunction now has its step parameter defaulting to 1.
It also gets an additional optional parameter
partialWindows, which controls what to do with incomplete windows in the end. By default it is false, which means incomplete windows are dropped.
pairwisefunction name was too confusing, it was unclear how it paired the elements together. Now it is called
zipWithNext, so it is more clear that each element is zipped with the next element in a collection.
Common math operations in the standard library
There was a longstanding request to support math operations in the standard library KT-4900. Until now one had to resort to math functions and constants from
java.lang.Math class in JVM platform and to
kotlin.js.Math which exposed native JS Math functions to Kotlin code in JS platform.
But now we're introducing the following groups of API in the
tanand inverse of them:
pow(an extension function),
round(half to even) functions;
roundToLong(half to integer) extension functions;
- sign and absolute value:
minof two values;
- binary representation:
Double.fromBits(these are in the