Skip to content

Commit

Permalink
idr
Browse files Browse the repository at this point in the history
  • Loading branch information
cetio committed Aug 25, 2024
1 parent c797570 commit 1313d22
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions source/tern/algorithm/mutation.d
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ LazySubstitute!(A, B, C) substitute(A, B, C)(A range, B from, C to)
A replace(A, B, C)(A range, B from, C to)
if (isIndexable!A && isElement!(A, B) && isElement!(A, C))
{
Range!A ret = range;
ret.plane!((ref i) {
ret[i] = from;
})(from);
Expand Down Expand Up @@ -224,6 +223,8 @@ A[] split(A, B)(A range, B by)

l = i + by.loadLength;
})(by);
if (l < range.loadLength)
ret ~= range[l..$];
return ret;
}

Expand All @@ -247,8 +248,8 @@ A[] split(alias F, A)(A range)

l = i + by.loadLength;
}, F);
if (range.length > 0)
ret ~= range[0..$];
if (l < range.loadLength)
ret ~= range[l..$];
return ret;
}

Expand Down
1 change: 1 addition & 0 deletions source/tern/algorithm/searching.d
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module tern.algorithm.searching;
import tern.traits;
import tern.typecons;
import tern.functional;
import tern.algorithm;
import tern.object : loadLength;
import tern.memory : memchr, reference;

Expand Down

0 comments on commit 1313d22

Please sign in to comment.