def agg.left

bend-kit-redis@0.3.0.0 · redis.bend:510

import bend-kit-redis@0.3.0.0/redis.bend as Redis
import Base

510# A map of n pairs has 2n items; an attribute adds the reply after its pairs.
511def agg.left(+kind: U32, +n: U32) -> U32:
512  Bool.pick(U32, U32.is_eq(kind, 1), (n * 2 : U32), Bool.pick(U32, U32.is_eq(kind, 3), (n * 2 + 1 : U32), n))

Uses (5)

Used by (1)