NullableToOption<T> extension

Create Option from nullable value

on
  • T?

Methods

toOption() Option<T>
Returns Some if the value is not null, otherwise None