Is its possible to define an algebra for string objects? For example:
- apple + apple = 2 apple
- apple + orange = orange + apple
- apple + 3.5 apple = 4.5 apple
Are there built-in functions that could do that? Is the creation of a class structure necessary?