Hi. I'm trying to understand this example from Munkres's book and there is a part that I can't understand what the definition of the $g$ loop is. More precisely, I don't understand "For each $n$, define $g$ on the interval $[1/(n+1),1/n]$ to be positive linear map of this interval onto $[0,1]$ followed by $f_n$"
What would the definition of $g$ look like? what value does the function $g$ take in that interval? I can't understand this part. Thanks.


$$g(x) = \begin{cases} p & x = 0 \\ f_n\left(\frac{x-\frac{1}{n+1}}{\frac{1}{n} - \frac{1}{n+1}}\right) & x \in \left[\frac{1}{n+1}, \frac{1}{n}\right], n \ge 1 \end{cases}$$
The map $x \mapsto \frac{x-\frac{1}{n+1}}{\frac{1}{n} - \frac{1}{n+1}}$ is the "positive linear map" from $[1/(n+1), 1/n]$ that is surjective onto $[0,1]$.