package org.matheclipse.core.reflection.system;

import org.matheclipse.core.expression.F;
import org.matheclipse.core.interfaces.IExpr;
import org.matheclipse.core.interfaces.ISymbol;

import com.google.common.base.Function;

public class Increment extends Decrement {
	class IncrementFunction implements Function {
		@Override
		public IExpr apply(final IExpr assignedValue) {
			return F.eval(F.Plus(assignedValue, F.C1));
		}

	}

	protected Function getFunction() {
		return new IncrementFunction();
	}

	protected ISymbol getFunctionSymbol() {
		return F.Increment;
	}
}
 

Ads help maintain this website.