Instead of `pred2` for the above, I don't suppose this would work?:

```D
return find!(a => a == element)(range);
```