`drop` not `opSlice` should be in the range api

Dukc ajieskola at gmail.com
Fri Jan 10 21:07:53 UTC 2025


On Friday, 10 January 2025 at 18:46:33 UTC, monkyyy wrote:
> Theres a reason allot of code uses .array as glue

It's as it should be. Most of the time you're dealing with 
relatively small data amounts, so your code doesn't need to be 
fast. Nothing wrong with unoptimised code.

The result is you can quickly make a good guess whether the code 
you're reading is efficient for big ranges. Lost of unnecessary 
`.array`s, `.drop`s and `.take`s means it's probably not.


More information about the Digitalmars-d mailing list