fix Issue 11403 - functions in std.algo can't be used as pred