Is there a command to merge subsequent elements in a list – ie in a list [‘AA’, ‘BB’, ‘C’, ‘D’] how would one merge the first two elements (or any others, depending on the code) in the list, leaving a list like [‘AABB’, ‘C’, ‘D’] ? Thanks!
Share
You can try the following if you don’t care about init list:
If you want to get new one and leave initList as is you can use something like this(note that this is just a sample):
Or in some cases you can try to use something like this too: