Add support for tuple operations - #197
Conversation
|
This is a great idea, but should we use builtin functions instead of operators for this? Because for strings, the |
|
Hi, thanks for the feedback! My idea was that the Tuples would just apply the opcode to each of the tuple element pairs (granted the two tuples have the same length). For now it works with Add and Sub, but I was also imagining multiplication and divison (every operator with two arguments really). We could also add support for single argument operators, where the operator is again, applied to each tuple element. And to my opinion the builtin functions should be used for less common operations, like Please tell me your thoughts and I'll try to implement those as best as I can :) |
This reverts commit 5df13c8.
Add support for
AddandSuboperations onValue::Tuple.