*/
public VariableState functionToState(Function function) {
if (function==null) return null;
if (function instanceof SymbolicFunction) {
SymbolicFunction symbolicFunction = (SymbolicFunction) function;
VariableState state = null;
if (symbolicFunction.isPrefixOnly()) {
state = (VariableState) symbolicFunction.getPrefix();
addState(state);
} else {
Ket.out.println(" !!! The only functions that can be converted to variables are prefix-only !!! ");