MathGroup Archive 2007

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

Search the Archive

Re: Outer with index in bounds

  • To: mathgroup at smc.vnet.net
  • Subject: [mg80459] Re: [mg80436] Outer with index in bounds
  • From: Sseziwa Mukasa <mukasa at jeol.com>
  • Date: Thu, 23 Aug 2007 01:01:21 -0400 (EDT)
  • References: <200708220849.EAA08839@smc.vnet.net>

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