question about sublists



Actually, it would be good to have functions to do both tasks.

For instance, to do various operations on permutations, it is very
useful to find the indices where certain list values occur.

   As a related comment, in using the functions lmin, lmax, I find it
   useful to get not only the minimum value, but the places in the list
   where it occurs. Is there already a function which does this?  I
   looked at Barton's maxmin.lisp but could not find one.

  t was a simpletask to write a routine which does this, but I 
think such routines should be built in.


  -sen


On Thu, 4 Jan 2007, miguel lopez wrote:

>
>> From Robert Dodier:
>
>> I think this is a general problem and Maxima should have a built-in
>> function for it. How about if we call it "find".
>
>
>  I think that find should gives the elements that verify the predicate P and
> not the positions of this elements (like in lisp), so i suggest that this be
> called position (find-position, etc.).
>
> Find should be like select in Mathematica.
>
>
> Also:  Gmane maxima doesn't work today (last message that appears is from
> yesterday).
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>

-- 
  ---------------------------------------------------------------------------
  | Sheldon E. Newhouse            |    e-mail: sen1 at math.msu.edu           |
  | Mathematics Department         |       				   |
  | Michigan State University      | telephone: 517-355-9684                |
  | E. Lansing, MI 48824-1027 USA  |       FAX: 517-432-1562                |
  ---------------------------------------------------------------------------