I have a list:
lis = {"ab", "cde", 2,"rs",3,"tu","v","w",7}
and would like to get the following list:
lis2 = {abcde, 2,rs, 3,tuvw,7}
... with adjacent strings joined and separated by integers.
Any thoughts would be appreciated!
|
I have a list:
and would like to get the following list:
... with adjacent strings joined and separated by integers. Any thoughts would be appreciated! |
||||
|
|
|
If you don't mind code that generates messages, then the following will work:
|
|||||
|
or
|
||||
|
|
|
This is a bit elaborate:
|
|||
|
|