Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: Position different in 5.0 and 5.1?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg56081] Re: Position different in 5.0 and 5.1?
  • From: "Jens-Peer Kuska" <kuska at informatik.uni-leipzig.de>
  • Date: Fri, 15 Apr 2005 04:47:14 -0400 (EDT)
  • Organization: Uni Leipzig
  • References: <d3lraa$s6b$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

do you mean
Position[{"asd", "dsa"}, x_String /; 
(StringTake[x, 1] == "a")]

??

Regards

  Jens

"J R Gog" <jrg20 at cam.ac.uk> schrieb im Newsbeitrag 
news:d3lraa$s6b$1 at smc.vnet.net...
>
> I've recently upgraded from 5.1 from 5.0 and 
> have found that some of my old
> notebooks don't seem to work. I think I have the 
> essence of what I'm utterly
> confussed about in this example:
> Position[{"asd", "dsa"}, x_ /; (StringTake[x, 1] 
> == "a")]
>
> What I want is the position of list entries 
> which have first character "a".
> In 5.0, this line works. In 5.1, I get an error 
> that StringTake is being fed
> a string.
>
> I can't find any documentation that explains 
> what has changed to have this
> effect. I'm sure I've missed something obvious, 
> but if anyone can explain to
> me what has changed, it would be very helpful 
> indeed. I know I can do
> everything some other way, but I need to know 
> exactly what old stuff I need
> to change!
>
>
>
> Thanks
>
>
>
> Julia Gog
>
> 



  • Prev by Date: NDSolve and InterpolatingFunction
  • Next by Date: Re: Position different in 5.0 and 5.1?
  • Previous by thread: Position different in 5.0 and 5.1?
  • Next by thread: Re: Position different in 5.0 and 5.1?