If the condition is satify then return value in Some else None
value
static Option<A> cond<A>(bool test, A value) => test ? Option.of(value) : _none();