scsh-users
[Top] [All Lists]

scheme function

To: scsh-news@zurich.ai.mit.edu
Subject: scheme function
From: ecoswiss@yahoo.com (swiss)
Date: 13 Nov 2002 16:03:52 -0800
Organization: http://groups.google.com/
>hi,
>
>can any one tell me how to write a key function which takes a word as
>input and maps it to its key using the ctv character to vale mapping.
>where ctv("character to value mapping") maps 'a' to 1, 'b' to
>2,.....and 'z' to 26.
>for example 
>key("class")= ctv('c')* ctv('l')* ctv('a')* ctv('s')* ctv('s')
>           = 3 * 12* 1 * 19* 19 = 12996

<Prev in Thread] Current Thread [Next in Thread>