def negotiate.of
import ezmcp@0.1.0.0/src/server.bend as Serverimport Base
73# the revision a server answers to the one a client asks for: the same when
74# it is supported, else the latest (basic/lifecycle#version-negotiation)
75def negotiate.of(val: String, ok: Bool) -> String:
76 match ok:
77 case True{}:
78 val
79 case False{}:
80 latest()