def unpack
import mylsm-lsm-store@0.6.0.1/src/Keys.bend as Keysimport Base
23# Total-order comparison for keys. Base's String.cmp hands the strings back
24# beside the verdict ((s1, s2), c); we take reusable copies and unpack via a
25# helper (a match cannot scrutinize the computed call directly).
26def unpack(pair: (String & String) & Cmp) -> Cmp:
27 match pair:
28 case ((_, _), c):
29 c