Skip to content

Commit ffbf2f4

Browse files
committed
4 RELEASES 3 BUGFIXES
1 parent 97ad379 commit ffbf2f4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

source/tern/algorithm/lazy_substitute.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import std.conv;
88

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

source/tern/algorithm/mutation.d

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ LazyFilter!(F, T) filter(alias F, T)(T range)
7373
* A lazy substitute of `range` using `from` and `to`.
7474
*/
7575
LazySubstitute!(A, B, C) substitute(A, B, C)(A range, B from, C to)
76-
if (isForward!T && isIndexable!T)
76+
if (isForward!A && isIndexable!A && isElement!(A, B) && isElement!(A, C))
7777
{
7878
return LazySubstitute!(A, B, C)(range, from, to);
7979
}

0 commit comments

Comments
 (0)