import std/sugar let data = @["bird", "word"] echo collect(newSeq, for i, d in data.pairs: (if i mod 2 == 0: d))