import D "mo:base/Debug";
import Text "mo:base/Text";
import Nat8 "mo:base/Nat8";
import Float"mo:base/Float";
type Day = {#Sun; #Mon; #Tue; #Wed; #Thu; #Fri; #Sat;};
let day : Day = #Wed;
type Result = {
#ok : Nat;
#err : Text;
};
var resultOk : Result = #ok(42);
resultOk := #err("Wrongo!");
D.print("resultOk = " # debug_show(resultOk));
let resultErr : Result = #err("Something went wrong");
Problem:
Describe your problem and steps to reproduce it.
My code: