def int.val
import bend-kit-redis@0.3.0.0/redis.bend as Redisimport Base
286def int.val(good: Bool, +neg: Bool, +hi: U32, +lo: U32) -> Maybe<&1, Val>:
287 match good:
288 case True{}:
289 Some{int.mk(Bool.pick(U32 & U32, neg, i64.neg(hi, lo), (hi, lo)))}
290 case False{}:
291 None{}