def agg.ok
import bend-kit-redis@0.3.0.0/redis.bend as Redisimport Base
157def agg.ok(+kind: U32, +n: U32) -> Bool:
158 +odd = U32.is_eq((n .&. 1 : U32), 1)
159 Bool.pick(Bool, U32.is_eq(kind, 1), Bool.not(odd), Bool.pick(Bool, U32.is_eq(kind, 3), odd, True{}))