// ToStream takes a channel of Values and appends each one to the supplied ValueStream. func ToStream(input <-chan *oproto.Value, output *oproto.ValueStream) *oproto.ValueStream { for v := range input { output.Value = append(output.Value, v) } return output }