At 11:52 AM 9/2/00, Brad Waite wrote:
>Hi all,
>
>findPosNear isn't working the way I read the dictionary.  What could I be 
>doing
>wrong?
>
>fred = ["apple", "bat", "car"]
>put findPosNear(fred, "b")
>-- 0

findPosNear requires a sorted list:

fred = ["apple", "bat", "car"]
sort fred
put findPosNear(fred, "b")
-- 2


--
Mark A. Boyd
Keep-On-Learnin' :)


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to