def count_pick
import bend-collections@1.0.0.0/src/containers/internal/intrusive_list.bend as IntrusiveListimport Base
243def count_pick(~S: Type, +count: Nat, r: S & Bool) -> S & Nat:
244 match r:
245 case Tuple{s, True{}}: (s, 1n+count)
246 case Tuple{s, False{}}: (s, count)