You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Erik Westra (eecolor) said:
I found out it was not as easy as I expected. I have edited my answer at the stackoverflow question to list the implementation I am using now.
If you are not planning to add similar Tuple operations to the standard library, could you respond here? I could then create a small open source library that adds them.
If tuples would have append and prepend methods a lot of libraries would not have to generate Class1 - Class22 definitions. Different methods of appending and prepending to tuples are described in this StackOverflow post: http://stackoverflow.com/questions/15349439/how-to-append-or-prepend-an-element-to-a-tuple-in-scala
I would recommend the simple solution by Rex Ker: http://stackoverflow.com/a/15349965/596816
It seems (from my naive perspective) like a small addition with big effects on code size (and generation challenges) in a lot of libraries.
The text was updated successfully, but these errors were encountered: