On pg. 83 of Hefferon's Linear Algebra, it says this:
The set $\left \{ f\mid f\colon\mathbb{N}\rightarrow \mathbb{R} \right \}$ of all real-valued functions of one natural number variable is a vector space under the operations.
How do I read the notation to mean what the sentence says? I thought the "|" and ":" mean the same thing--"such that...". So I thought someone would write it $\left \{ f\mid \mathbb{N}\rightarrow \mathbb{R} \right \}$. Also, I don't understand the "$\mathbb{N}\rightarrow \mathbb{R}$" part. I saw from Wikipedia that "$\rightarrow$" means "implies". It makes the notation sound like "$\mathbb{N}$ implies $\mathbb{R}$", which doesn't make sense to me.
$\to$ in this case means "to." So, $f\colon\mathbb{N}\to\mathbb{R}$ is the notation for a function $f$ with domain $\mathbb{N}$ and codomain $\mathbb{R}$.
$|$ and $:$ both mean "such that" in the context you are suggesting. Here, though, the $:$ is part of the function notation, not the set description notation. So, what you essentially have is s set containing all functions $f$ of the aforementioned form. I.e., a set of all functions which map a natural number to a real number.