In the Erlang interactive shell you can bind variables to values. If I would like to clear everything and start from scratch without exiting the session and starting a new one, how do I do that?
And if I just wanted to re-use a single variable, is it possible to re-bind?
Use f() and f(Var):
Shell commands are actually functions in the 'c' module: http://www.erlang.org/doc/man/c.html
Yes, when you "unbind" (f(Val) - forget) the value you can re-bind (match) it again. Needless to say it only works in erlang shell.