We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
each
1 parent 5ae986d commit 748ea8aCopy full SHA for 748ea8a
std/algorithm/iteration.d
@@ -659,7 +659,8 @@ if (fun.length >= 1)
659
foreach (f; _funs)
660
{
661
static assert(!is(typeof(f(RE.init)) == void),
662
- "Mapping function(s) must not return void: " ~ _funs.stringof);
+ "Mapping function(s) must not return void. " ~
663
+ " Consider using `each` instead of `map!(" ~ _funs.stringof ~ ")`");
664
}
665
666
return MapResult!(_fun, Range)(r);
0 commit comments