Quantcast
Viewing all articles
Browse latest Browse all 186

Element by element concatenation of two string lists

I have two lists of strings:

month = {january, february, march}year = {2013, 2013, 2013}

I want to concatenante these element by element with the final result of the form:

{january 2013, february 2013, march 2013}

The closest I have come is the following:

Map[StringRiffle[#, " "] &, {month, year}]

Which results in:

{"january february march", "2013 2013 2013"}

Which isn't very close...but at least it doesn't result in an error.

I'm sure this is simple, but I have clearly missed something.

Thanks in advance.


Viewing all articles
Browse latest Browse all 186

Trending Articles



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