On Tuesday, 7 January 2025 at 06:39:08 UTC, Jonathan M Davis wrote:

In any case, since Phobos in general uses ranges all over the place, it really doesn't make sense that std.range would have all of the range-related functions. It just has some of the core ones that are range-specific and arguably not algorithms (but again, the distinctions can be blurry at times). And regardless of how clear some of the distinctions between the modules were originally, those lines have been blurred as the functionality of some of the functions involved has expanded. So, understanding the basic distinctions between the various modules helps make it possible to find stuff more easily, but functions aren't always where you might expect them to be, depending on what your expectations are.

- Jonathan M Davis

Interesting historical context, thanks for letting us know.

My difficulty would've been eased by more documentation and examples (the official docs examples tend) :). Unfortunately, D really lacks in this regard, despite its age.

I might write myself something about how to do basic stuff in D as I learn.

Reply via email to