I wanted to write pure function with Java 8 that would take a collection as an argument, apply some change to every object of that collection and return a new collection aft
Streams are immutable like strings so you cannot get around needing to create a new stream/list/array
That being said you can use .Collect() to return a new collection post change so
List result = inList.stream().map().Collect()