``` val port = System.getenv("PORT").toOption().fl...
# arrow
t
Copy code
val port = System.getenv("PORT").toOption().flatMap { it.toIntOrNull().toOption() }.getOrElse(8080)
here is a similar using extension function provided by arrow
👍 2