Flatten as a pseudo-generator

1 · Chris Henk · Jan. 15, 2025, 8 p.m.
Summary
Has functional programming gone too far? This is a brief discussion of a snippet of code from a more junior member of my team that perplexed me when I first read it. I’m sharing it in part because it was a neat trick and also because it exposed me to a weird, honestly unnatural aspect of rust. The Code This is modified for brevity and because the original code is proprietary. The context he......