MathGroup Archive 2003

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

Search the Archive

Re: Q: lists


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