def kind.val
import bend-kit-redis@0.3.0.0/redis.bend as Redisimport Base
42def kind.val(+kind: U32, xs: List<&1, Val>) -> Val:
43 match kind:
44 case 0:
45 Arr{xs}
46 case 1:
47 Dict{xs}
48 case 2:
49 Set{xs}
50 case 3:
51 Attr{xs}
52 case _:
53 Push{xs}