Use standard range API

This commit is contained in:
2025-08-27 13:52:11 +02:00
parent b8fa670c5a
commit 2a67ccd954
23 changed files with 21 additions and 1763 deletions

View File

@@ -20,6 +20,7 @@
*/
module tanya.algorithm.iteration;
import std.range : isBidirectionalRange;
import std.traits;
import std.typecons;
import tanya.memory.lifetime;

View File

@@ -14,6 +14,7 @@
*/
module tanya.algorithm.mutation;
import std.range : hasLvalueElements, isInputRange, isOutputRange, put;
import std.traits;
static import tanya.memory.lifetime;
static import tanya.memory.op;

View File

@@ -18,6 +18,7 @@ import core.checkedint;
import std.algorithm.comparison;
import std.algorithm.iteration;
import std.algorithm.mutation : bringToFront;
import std.range : isInfinite, isInputRange;
import std.traits;
import tanya.algorithm.mutation;
import tanya.memory.allocator;

View File

@@ -15,6 +15,7 @@
module tanya.container.hashtable;
import std.algorithm.iteration;
import std.range : isInfinite, isForwardRange;
import std.traits;
import tanya.algorithm.mutation;
import tanya.container.array;

View File

@@ -17,6 +17,7 @@ module tanya.container.list;
import std.algorithm.comparison;
import std.algorithm.iteration;
import std.range : isInfinite, isInputRange;
import std.traits;
import tanya.container.entry;
import tanya.memory.allocator;

View File

@@ -15,6 +15,7 @@
*/
module tanya.container.set;
import std.range : isInfinite, isForwardRange;
import std.traits;
import tanya.container.array;
import tanya.container.entry;

View File

@@ -28,6 +28,7 @@ module tanya.container.string;
import std.algorithm.comparison;
import std.algorithm.mutation : bringToFront;
import std.range : isInfinite, popFrontN, isInputRange;
import std.traits;
import tanya.algorithm.mutation;
import tanya.hash.lookup;

View File

@@ -14,6 +14,7 @@
*/
module tanya.conv;
import std.range : isInputRange;
import std.traits;
import tanya.container.string;
import tanya.memory.allocator;

View File

@@ -51,6 +51,7 @@ import std.algorithm.comparison;
import std.ascii;
import std.math : signbit;
import std.meta;
import std.range : isInfinite, popFrontExactly, isInputRange, isOutputRange, put;
import std.traits;
import tanya.container.string;
import tanya.math;

View File

@@ -14,6 +14,7 @@
*/
module tanya.hash.lookup;
import std.range : isInfinite, isInputRange;
import std.traits;
import tanya.meta;
import tanya.range.primitive;

View File

@@ -14,6 +14,7 @@
*/
module tanya.net.iface;
import std.range : isInputRange;
import std.traits;
import tanya.algorithm.mutation;
import tanya.container.string;

View File

@@ -14,6 +14,7 @@
*/
module tanya.net.inet;
import std.range : isInfinite, isInputRange;
import std.traits;
import tanya.meta;
import tanya.range;

View File

@@ -16,6 +16,7 @@ module tanya.net.ip;
import std.algorithm.comparison;
import std.ascii;
import std.range : isForwardRange, isInputRange, isOutputRange, put;
import std.sumtype;
import std.typecons;
import std.traits;

View File

@@ -14,6 +14,7 @@
*/
module tanya.range.adapter;
import std.range : isInputRange, isOutputRange, put;
import std.traits;
import tanya.algorithm.mutation;
import tanya.memory.lifetime;

File diff suppressed because it is too large Load Diff