> Where does `std.functional` come in play? You mean `std.algorithm`?

`binaryFun` (and `unaryFun`) is in `std.functional`.