blob: 58c76bc08068c5b5bed07ea4cd126c6024e19aa7 [file] [log] [blame]
// https://issues.dlang.org/show_bug.cgi?id=6395
template map(alias fun) {
auto map(Range)(Range r) {
struct Result
{
@property auto ref front()
{
return fun("a");
}
}
return Result();
}
}
Range find(alias pred, Range)(Range haystack) {
pred(haystack.front);
return haystack;
}