Combining two Immutable lists with inject
问题 I have two lists that consist of strings, both immmutable: def list1 = [ "A", "B", "C" ] list2 = ["D", "E", F"] List 2 is being returned by a custom function I have made. Is there a way to take these two immutable lists and combine both of their elements with inject? I have tried numerous combinations without success. I have googled extensively for this. I cannot change this to a mutable list. I am aware that it would be much easier to simply combine two lists then make them immutable, but