def distinct_keys
import near-architecture@0.9.1.0/arc.bend as Arcimport Base
337# No key names two things.
338def distinct_keys(xs: List<&2, String>) -> Bool:
339 match xs:
340 case []:
341 True{}
342 case +k <> +rest:
343 Bool.not(has(k, rest)) && distinct_keys(rest)