assert(Optional!int.some(3).handle!((ref n) => n += 7) == 10.some); assert(Optional!int.some(3).handle!((ref n) => n + 7) == 3.some); assert(Optional!int.none.handle!((ref n) => n = 0) == .none);
See Implementation