3 ms·Nim has a `collect` macro which works exactly like this.by xigoi 3y agoNim has a `collect` macro which works exactly like this.