MathGroup Archive 2003

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

Search the Archive

Re: Q: lists

  • To: mathgroup at smc.vnet.net
  • Subject: [mg40075] Re: Q: lists
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Tue, 18 Mar 2003 05:51:04 -0500 (EST)
  • Organization: Universitaet Leipzig
  • References: <b56hq4$c0g$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

{3, {1, 2, 3, 4}} /. {a_, l_List} :> ( {a, #} & /@ l)

???

Regards
  Jens

Dick Barends wrote:
> 
> Hello,
> 
> I want to tranform the list below:
> 
> {3,{1,2,3,4}}
> 
> into
> 
> {3,1}{3,2}{3,3}{3,4}
> 
> How can I do this?
> 
> kind regards
> Dick


  • Prev by Date: RE: Increase in efficiency with Module
  • Next by Date: Re: Limiting the results
  • Previous by thread: Re: Q: lists
  • Next by thread: Re: Q: lists