Give a one-to-one and onto function $f : [0,1] \to [0,1)$ without using Cantor–Bernstein theorem ?!
I can give $f(x) = x$ and so its one-to-one and onto but its problematic because $f(1)=1$ and so its not in $[0,1)$
Can any one give me hints or help , thanks
Define $f\colon[0,1]\longrightarrow[0,1)$ this way: