def ver.from
import ezx@1.11.0.0/src/git/git.bend as Gitimport Base
639def ver.from(empty: Bool, had: Bool, +core: String, +pre: String) -> Ver:
640 match empty:
641 case True{}:
642 No{}
643 case False{}:
644 ver.nums(had, nums.of(String.split(core, '.')), pre)