def unpack

mylsm-lsm-store@0.6.0.1 · src/Keys.bend:23

import mylsm-lsm-store@0.6.0.1/src/Keys.bend as Keys
import 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

Uses (4)

Used by (3)