Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.1-beta-1
-
None
-
None
Description
sum() currently assumes that the items being summed are all numbers or strings.
def list1 = [1, 2]
def list2 = [3, 4]
def list3 = [5, 6]
[list1, list2, list3].sum() currently produces the string "[1, 2][3, 4][5, 6]"
it should produce the list [1, 2, 3, 4, 5, 6] which is what
list1 + list2 + list3 produces.