alias O = Optional!int; assert(O.none.andThen!(i => i + 3) == none); assert(O.some(7).andThen!(i => i + 3) == 10.some);
See Implementation