Re:Functional programming is finally going mainstream
by stickfigure on Wednesday July 13, 2022 @07:55PM
(#32090233)
...and in fact most strings in OOP languages work like this:
String next = original.substring(2);
Immutable objects are a pretty old idea, smalltalk had select (map) methods that returned a whole new collection back in the 80s.