Given an affine variety, we can forget it into a variety. The other way round, given a variety $X$ we can look at $$spec(\mathcal O_X(X)$$
Is this necessarily an affine variety (a priori its just an affien scheme)? If so, am I right that this implys that taking spec of the global functions is left adjoint to the forgetful functor on the level of varieties?
Also, what does this functor intuitively? If you feed in an affine variety, it spits out the same variety again. If you apply it to a complete irreducible variety (for example $\mathbb P^n$) it gets transformed into a point.