Skip to content

Commit

Permalink
4 RELEASES 3 BUGFIXES
Browse files Browse the repository at this point in the history
  • Loading branch information
cetio committed Aug 7, 2024
1 parent 97ad379 commit ffbf2f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/tern/algorithm/lazy_substitute.d
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import std.conv;

/// Lazy substitute-based range implementation.
public struct LazySubstitute(A, B, C)
if (isForward!A && isIndexable!A && isCallable!F)
if (isForward!A && isIndexable!A && isElement!(A, B) && isElement!(A, C))
{
A _range;

Expand Down
2 changes: 1 addition & 1 deletion source/tern/algorithm/mutation.d
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ LazyFilter!(F, T) filter(alias F, T)(T range)
* A lazy substitute of `range` using `from` and `to`.
*/
LazySubstitute!(A, B, C) substitute(A, B, C)(A range, B from, C to)
if (isForward!T && isIndexable!T)
if (isForward!A && isIndexable!A && isElement!(A, B) && isElement!(A, C))
{
return LazySubstitute!(A, B, C)(range, from, to);
}
Expand Down

0 comments on commit ffbf2f4

Please sign in to comment.