assert(Result!int.ok(3).fmap!(n => n + 7) == 10.ok); import std.algorithm: equal, map; import std.range : only; assert(Result!int.ok(3).only.map!(fmap!(n => n + 7)).equal(10.ok.only));
See Implementation