Scalar function calls inside of map