• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How do you check the equivalency of references?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do you check the equivalency of references?


  • Subject: Re: How do you check the equivalency of references?
  • From: John W Baxter <email@hidden>
  • Date: Thu, 9 Aug 2001 22:45:09 -0700

At 17:59 -0400 8/9/01, Arthur J Knapp wrote:
> From the Useless AppleScript Library:
>
>(* A "universal" hash function for strings.
> *)
>on hash(str, max)
> set {a, b, h} to {31415, 27183, 0}
> repeat with c in str
> set h to (a * h + (ASCII number c)) mod max
> end repeat
> return h
>end hash

Hmmm...what does b do in there (aside from separating a and h)? ;-)

I have a hunch we're missing something. --John

--
John Baxter email@hidden Port Ludlow, WA, USA


References: 
 >Re: How do you check the equivalency of references? (From: Arthur J Knapp <email@hidden>)

  • Prev by Date: Re: Files in a Folder
  • Next by Date: Re: Proxy settings from AppleScript
  • Previous by thread: Re: How do you check the equivalency of references?
  • Next by thread: Re: How do you check the equivalency of references?
  • Index(es):
    • Date
    • Thread