Solution in moc 0.8.3: let else - "match" and "take" in motoko - do? for variants (was "when")

In case you previously participated and contributed:

let ?x = getMyNat() else {return #err("I just could not do it")};

let y = x + x;

1 Like