Mediand, std, var to accept function as first argument

Apparently, generators are not quite like map: