MathGroup Archive 2004

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

Search the Archive

Re: faster sublist checking


Both evaluate to True at my machine (Mathematica 5.0.1).

Bobby

jmyers6761 at aol.com (JMyers6761) wrote in message news:<cb645s$khh$1 at smc.vnet.net>...
> Why is this?
> 
> A = {3, 5}; B = {1, 2, 3, 4, 5, 6, 7};
> 
> Intersection[B, A] == Sort[A]
> True
> 
> but
> 
> SublistQ[B_List, A_List] := Intersection[B, A] == Sort[A];
> 
> SublistQ[B, A]
> False
> 
> Al Myers


  • Prev by Date: RE: Re: faster sublist checking
  • Next by Date: Re: Net/Link: Problems with DLL (3)
  • Previous by thread: RE: Re: faster sublist checking
  • Next by thread: Re: faster sublist checking