function constant (x, stream) {
  return map$2(function () {
    return x
  }, stream)
}
Replace each value in the stream with x
@param {*} x
@param {Stream} stream
@returns {Stream} stream containing items replaced with x