Transform this program's final value with f. Like flatMap, f runs immediately on a Program.Done value and during interpretation otherwise.