// Generated by bynkc — do not edit by hand.
// commons test

import { Ok, Err, Some, None, type Result, type Option, type ValidationError } from "./runtime.js";

export function handle(r: Result<number, string>): number {
  switch (r.tag) {
    case "Ok": {
      const n = r.value;
      return n;
    }
    case "Err": {
      return 0;
    }
  }
  throw new Error("non-exhaustive match");
}

