MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: How can I concatenate elements

  • To: mathgroup at smc.vnet.net
  • Subject: [mg119875] Re: How can I concatenate elements
  • From: sungmin <sungmin817 at googlemail.com>
  • Date: Mon, 27 Jun 2011 07:32:01 -0400 (EDT)
  • References: <iu4a05$jpm$1@smc.vnet.net>

How about this?

s1 # & /@ s2 // Flatten

Sungmin

On Jun 25, 6:32 pm, "Leandro Tenfen" <leandroten... at hotmail.com>
wrote:
> Hi,
>
> I have two lists:
>
> s1={1,2,3,4,5,6};
> s2={c,k};
>
> How can I concatenate elements of lists as follows:
>
> s3={1c,2c,3c,4c,5c,6c,1k,2k,3k,4k,5k,6k}
>
> Many Thanks!



  • Prev by Date: Geolocation in Session Information Message
  • Next by Date: Get open source code for doing Cross Tabulations / Contingency Tables with Mathematica
  • Previous by thread: Re: How can I concatenate elements
  • Next by thread: Re: How can I concatenate elements