Comment

Comment by SideburnsOfDoom

This is where a well-placed .ToList() is called for, to reify avoid re-evaluating the enumeration.

e.g.

var classes = Names.Select(x => new PersonStruct { Name = x }).ToList();

for (var i = 0; i < classes.Count; i++)

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton