0

Hi I have a list like this

List x=["a","b","c","d","e"];

I would like to split x list into some part and each part has 2 members. So I would like to turn list x into a new list like this

List newList=[["a","b"],["c","d"],["e"]]

and when I have

List x=["a","b","c","d","e","f"];

it will turn into

List newList=[["a","b"],["c","d"],["e","f"]]
uyhaW
  • 1,141
  • 19
  • 45

0 Answers0