def target
import bend-kit-hairpin@0.13.0.1/hairpin.bend as Hairpinimport Base
111# ref against the base (RFC 3986 §5.2); with no base, ref as given. None when the base is not absolute.
112def target(+b: String, ref: String) -> Maybe<&2, String>:
113 target.pick(String.is_empty(b), b, ref)