MathGroup Archive 2005

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

Search the Archive

Re: # question


ekantian schrieb:
> how do i manage overlapping #?
> 
> i.e.
> 
> Map[
>   Select[{2, 3, 6, 1, 0}, # < # &],
>   {2, 5, 3}]
> 
> 
> which i would like to return {{1,0},{2,3,1,0},{2,1,0}}
> 
> thx.
> 

In[1]:=
Map[Select[{2, 3, 6, 1, 0},
    Function[compare, compare < #]]&, {2, 5, 3}]
Out[1]={{1, 0}, {2, 3, 1, 0}, {2, 1, 0}}
-- 
Peter Pein, Berlin
GnuPG Key ID: 0xA34C5A82
http://people.freenet.de/Peter_Berlin/


  • Prev by Date: Re: # question
  • Next by Date: Re: # question
  • Previous by thread: Re: # question
  • Next by thread: Re: # question