MathGroup Archive 2007

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

Search the Archive

problem with Pick


Step to reproduce:
1. Evaluate these two inputs with a fresh kernel:
Pick[{a,b},z[{},{1}],{__}]
Pick[{a,b},{{},{1}},{__}]

Expected results:
{b}
{b}

Actual results:
{b}
{a,b}

Relevant Documentation:
Pick[list,sel,patt] picks out those list[[i1,i2,...]] for which
sel[[i1,i2,...]] matches patt.

Relevant Evaluation:
In[3]:= MatchQ[{},{__}]
Out[3]= False

In[4]:= {Internal`$CreationID,$Version}
Out[4]= {853857,6.0 for Microsoft Windows (32-bit) (April 27, 2007)}

--
http://chris.chiasson.name/


  • Prev by Date: Re: save as pdf in version 6
  • Next by Date: Copying input from the Wolfram blog
  • Previous by thread: Re: A Note of Thanks
  • Next by thread: Re: problem with Pick