This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val s: String? = "1" | |
val r: Int = with(s) { Integer.parseInt("${s?.length}") } | |
val r1: Int? = s?.run { Integer.parseInt("$length") } | |
val r2: Int? = s?.let { s -> Integer.parseInt("${s.length}") } | |
val r3: String? = s?.also { Integer.parseInt(it) } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "2" | |
services: | |
plex: | |
image: linuxserver/plex:latest | |
ports: | |
- 32400:32400 | |
- 32400:32400/udp | |
- 32469:32469 | |
- 32469:32469/udp |