13 years, 8 months ago
Highlights
Community contributions featured13 years, 8 months ago
Length is purely an artefact, no? You can implement length as a linear-time operation on any range, and more realistically you can cache the length up front (a la most implement…
13 years, 8 months ago
I've been working on a ranged-based STL like Alexandrescu proposed in his "Iterator's Must Go" talk. I've encountered an issue with constructing a containe…
14 years, 8 months ago
[quote name='swiftcoder' timestamp='1358522062' post='5022910'] What's wrong with the naive solution, where you maintain 3 separate ranges, and linearly search for the pivot? [/…
13 years, 8 months ago
13 years, 8 months ago
Latest Activity
See all in DiscussionsLength is purely an artefact, no? You can implement length as a linear-time operation on any range, and more realistically …
13 years, 8 months ago
[quote name='swiftcoder' timestamp='1358522062' post='5022910'] What's wrong with the naive solution, where you maintain 3 separate ranges, and linearly search for …
13 years, 8 months ago
If I'm reading the D docs correctly, this is just a find algorithm that returns 3 ranges: all elements before …
13 years, 8 months ago