when<A> static method

Option<A> when<A>(
  1. bool test,
  2. A value
)

Implementation

static Option<A> when<A>(bool test, A value) => option(test, value);