Quantcast
Viewing all articles
Browse latest Browse all 186

Element combinations

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!


Viewing all articles
Browse latest Browse all 186

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>