# Hi, community. I recently introduced myself to the language and really impressed # and would like to practice it and adapt to my hobbies and work. # I have a question, which is obvious and i think it was answered thousand times # already. But google did not help me to find answer. Would you be so kind to look # into my question? # I have next code type Color = enum red Round = array[Color, int] if isMainModule: var round: Round echo round.pairs.toSeq.any(proc(p: tuple[key: Color, val: int]): bool = true) # It was not able to find a way to chain `pairs` into `any` without consuming # iterator with `toSeq`. Did i miss something, or should i implement wrapper for # any by myself? For my current task `toSeq` is ok. But i already can imagine the # code where i would like to avoid conversion of iterator into `seq`.