def ver.ok

ezx@1.11.0.0 · src/pkg/pkg.bend:391

import ezx@1.11.0.0/src/pkg/pkg.bend as Pkg
import Base

391# a version: four numbers, like 1.0.0.0
392def ver.ok(+text: String) -> Bool:
393  +ps = String.split(text, '.')
394  Bool.and(Nat.is_eq(List.length(&2, String, ps), 4n), ver.nums(ps))

Uses (8)

Used by (1)