public override DustObject Multiply(DustObject other) { if (other is DustInt) { return(new DustString(string.Concat(Enumerable.Repeat(Value, other.ToInt())))); } return(base.Multiply(other)); }
public override DustObject Multiply(DustObject other) { return(new DustInt(Value * other.ToInt())); }
public override DustObject Subtract(DustObject other) { return(new DustInt(Value - other.ToInt())); }
public override DustObject Add(DustObject other) { return(new DustInt(Value + other.ToInt())); }