MathGroup Archive 2006

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

Search the Archive

Lists and rules

  • To: mathgroup at
  • Subject: [mg66485] Lists and rules
  • From: "Thomas Schmelzer" <thomas.??? at>
  • Date: Mon, 15 May 2006 23:49:35 -0400 (EDT)
  • Organization: Balliol College
  • Reply-to: "Thomas Schmelzer" <thomas.??? at>
  • Sender: owner-wri-mathgroup at

I would like to produce a decent piece of code for one of my projects.
I am constructing a list of sets

S_1, S_2 and S_3

where S_j = { m  ,   T[[1,m]] == j, m running from 1 to 100}

T[[1,*]] is a row vector containing only 1, 2 and 3.

I could setup a for loop and work with append. I have done that, but I 
believe this approach is neither efficient nor elegant. Any hints for a 


  • Prev by Date: NestWhile iterator.
  • Next by Date: Re: ViewPoint selector
  • Previous by thread: Re: NestWhile iterator.
  • Next by thread: Re: Lists and rules