MathGroup Archive 2007

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

Search the Archive

Re: Outer with index in bounds


On Aug 22, 2007, at 4:49 AM, DC wrote:

> Hi all, I would like to use Outer as:
>
> Outer[f[#1,#2]&,Range[10],Range[#1],1,1]
>
> in order to create a list whose first element is a list of length  
> 1, the
> second is a list of length 2, and so on.
> More generally, I would like to use Outer with one bound depending on
> the other as in :
>
> Outer[f[#1,#2]&,list1,list2[#1],1,1]

Why not just map over the list of lengths?

Range/@Range[10]

Regards,

Ssezi


  • Prev by Date: Plot
  • Next by Date: JLink
  • Previous by thread: Outer with index in bounds
  • Next by thread: Re: Outer with index in bounds