all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 additions and 0 deletions
21
Task/Soundex/PicoLisp/soundex.l
Normal file
21
Task/Soundex/PicoLisp/soundex.l
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
(de soundex (Str)
|
||||
(pack
|
||||
(pad -4
|
||||
(cons
|
||||
(uppc (char (char Str)))
|
||||
(head 3
|
||||
(let Last NIL
|
||||
(extract
|
||||
'((C)
|
||||
(and
|
||||
(setq C
|
||||
(case (uppc C)
|
||||
(`(chop "BFPV") "1")
|
||||
(`(chop "CGJKQSXZ") "2")
|
||||
(("D" "T") "3")
|
||||
("L" "4")
|
||||
(("M" "N") "5")
|
||||
("R" "6") ) )
|
||||
(<> Last C)
|
||||
(setq Last C) ) )
|
||||
(cdr (chop Str)) ) ) ) ) ) ) )
|
||||
Loading…
Add table
Add a link
Reference in a new issue