Ronald Kuwawi wrote:
> 
> open text editor, type
> hash :: [Char] -> Int
> hash = (foldl (+) 0) . (map ord)
> 
> save as hash.hs
> 
> load script, type:
> hash "MSDOS 6.000"
> 
> or
> 
> hash "SYSTEM 7.0"

or

hash "HASKELL%98"

:-)

-- Zhanyong Wan

_______________________________________________
Haskell mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell

Reply via email to