This repository has been archived by the owner on Feb 24, 2021. It is now read-only.
orNull
API to cover the deprecated Option
API.
#120
Milestone
orNull
is a common API in Kotlin in contrast toOption
.If we are to deprecate
Option
as planned in #114 then we should also provide alternative APIs for the currentOption
APIs.Option
or?
is used to make unsafe APIs safe, or to indicate absence/terminal operations.headOption
->firstOrNull
tailOption
->lastOrNull
mapFilter
->mapNotNull
The text was updated successfully, but these errors were encountered: