This is LaTeX code:

[latex]
f(x):=\left\{\begin{array}{ll}
x &: 0 \leq x <1\\
 -1 & : x=1
\end{array}\right. 
[/latex]