Skip to content

Commit

Permalink
Merge branch 'master' into 1-9-20-rc-eap-details
Browse files Browse the repository at this point in the history
  • Loading branch information
koshachy authored Oct 12, 2023
2 parents 5e4f281 + e5419e9 commit e414e4e
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 21 deletions.
11 changes: 0 additions & 11 deletions docs/topics/idioms.md
Original file line number Diff line number Diff line change
Expand Up @@ -330,17 +330,6 @@ stream.buffered().reader().use { reader ->
inline fun <reified T: Any> Gson.fromJson(json: JsonElement): T = this.fromJson(json, T::class.java)
```

## Nullable Boolean

```kotlin
val b: Boolean? = ...
if (b == true) {
...
} else {
// `b` is false or null
}
```

## Swap two variables

```kotlin
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,32 @@ Compatible Kotlin version
<tr>
<td>

**0.8.0**

Released: 5 October, 2023

</td>
<td>

* [KT-60169](https://youtrack.jetbrains.com/issue/KT-60169) Migrated on the Gradle version catalog.
* [KT-59269](https://youtrack.jetbrains.com/issue/KT-59269) Renamed `android` to `androidTarget`.
* [KT-59269](https://youtrack.jetbrains.com/issue/KT-59269) Updated Kotlin and dependency versions.
* [KTIJ-26773](https://youtrack.jetbrains.com/issue/KTIJ-26773) Refactored to use `-destination` argument instead of `-sdk` and `-arch`.
* [KTIJ-25839](https://youtrack.jetbrains.com/issue/KTIJ-25839) Refactored generated file names.
* [KTIJ-27058](https://youtrack.jetbrains.com/issue/KTIJ-27058) Added the JVM target config.
* [KTIJ-27160](https://youtrack.jetbrains.com/issue/KTIJ-27160) Supported Xcode 15.0.
* [KTIJ-27158](https://youtrack.jetbrains.com/issue/KTIJ-27158) Moved the new module wizard to the experimental state.

</td>
<td>

* [Any of Kotlin plugin versions](releases.md#release-details)

</td>
</tr>
<tr>
<td>

**0.6.0**

Released: 24 May, 2023
Expand Down
8 changes: 7 additions & 1 deletion docs/topics/numbers.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,10 +303,16 @@ Here is an example that shows the difference in behavior between operands static
```kotlin
fun main() {
//sampleStart
// Operand statically typed as floating-point number
println(Double.NaN == Double.NaN) // false
// Operand NOT statically typed as floating-point number
// So NaN is equal to itself
println(listOf(Double.NaN) == listOf(Double.NaN)) // true


// Operand statically typed as floating-point number
println(0.0 == -0.0) // true
// Operand NOT statically typed as floating-point number
// So -0.0 is less than 0.0
println(listOf(0.0) == listOf(-0.0)) // false

println(listOf(Double.NaN, Double.POSITIVE_INFINITY, 0.0, -0.0).sorted())
Expand Down
4 changes: 2 additions & 2 deletions docs/topics/tour/kotlin-tour-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ fun main() {
```
{kotlin-runnable="true" kotlin-min-compiler-version="1.3" id="kotlin-tour-lambda-map"}

The `.map()` function accepts a lambda expression as a predicate:
The `.map()` function accepts a lambda expression as a transform function:
* `{ x -> x * 2 }` takes each element of the list and returns that element multiplied by 2.
* `{ x -> x * 3 }` takes each element of the list and returns that element multiplied by 3.

Expand Down Expand Up @@ -563,4 +563,4 @@ fun main() {

## Next step

[Classes](kotlin-tour-classes.md)
[Classes](kotlin-tour-classes.md)
14 changes: 7 additions & 7 deletions docs/topics/wasm/wasm-libraries.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,14 @@ You can use one of the following repositories to add Kotlin libraries to your pr
|-------------------------------|------------------|------------------------------------------------|
| stdlib | %kotlinVersion% | Maven Central |
| kotlin-test | %kotlinVersion% | Maven Central |
| kotlinx-coroutines | 1.7.0-RC-wasm0 | Custom for experimental Kotlin/Wasm artifacts |
| Compose Multiplatform | 1.4.0-dev-wasm08 | Custom for experimental Kotlin/Wasm artifacts |
| kotlinx-serialization | 1.5.1-wasm0 | Custom for experimental Kotlin/Wasm artifacts |
| Ktor | 2.3.1-wasm0 | Custom for experimental Kotlin/Wasm artifacts |
| kotlinx-atomicfu | 0.20.2-wasm0 | Custom for experimental Kotlin/Wasm artifacts |
| kotlinx-coroutines | 1.7.2-wasm0 | Custom for experimental Kotlin/Wasm artifacts |
| Compose Multiplatform | 1.4.0-dev-wasm09 | Custom for experimental Kotlin/Wasm artifacts |
| kotlinx-serialization | 1.5.2-wasm0 | Custom for experimental Kotlin/Wasm artifacts |
| Ktor | 2.3.3-wasm0 | Custom for experimental Kotlin/Wasm artifacts |
| kotlinx-atomicfu | 0.21.0-wasm0 | Custom for experimental Kotlin/Wasm artifacts |
| kotlinx-collections-immutable | 0.4-wasm0 | Custom for experimental Kotlin/Wasm artifacts |
| kotlinx-datetime | 0.4.0-wasm0 | Custom for experimental Kotlin/Wasm artifacts |
| skiko | 0.0.7.61-wasm03 | Custom for Compose Multiplatform dev artifacts |
| kotlinx-datetime | 0.4.0-wasm1 | Custom for experimental Kotlin/Wasm artifacts |
| skiko | 0.0.7.68-wasm03 | Custom for Compose Multiplatform dev artifacts |

## Enable libraries in your project

Expand Down

0 comments on commit e414e4e

Please sign in to comment.