Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
7
Task/Soundex/J/soundex-1.j
Normal file
7
Task/Soundex/J/soundex-1.j
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
removeDups =: {.;.1~ (1 , }. ~: }: )
|
||||
codes =: ;: 'BFPV CGJKQSXZ DT L MN R HW'
|
||||
|
||||
soundex =: 3 : 0
|
||||
if. 0=# k=.toupper y do. '0' return. end.
|
||||
({.k), ,": ,. 3 {. 0-.~ }. removeDups 7 0:`(I.@:=)`]} , k >:@I.@:(e. &>)"0 _ codes
|
||||
)
|
||||
10
Task/Soundex/J/soundex-2.j
Normal file
10
Task/Soundex/J/soundex-2.j
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
names=: 'Lloyd Woolcock Donnell Baragwanath Williams Ashcroft Euler Ellery Gauss Ghosh Hilbert Heilbronn Knuth Kant Ladd Lukasiewicz Lissajous'
|
||||
soundexNames=: 'L300 W422 D540 B625 W452 A226 E460 E460 G200 G200 H416 H416 K530 K530 L300 L222 L222'
|
||||
|
||||
soundex &> ;: names
|
||||
L300
|
||||
W422
|
||||
D540
|
||||
B625
|
||||
W452
|
||||
....
|
||||
2
Task/Soundex/J/soundex-3.j
Normal file
2
Task/Soundex/J/soundex-3.j
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
soundexNames-:(soundex &.>) &. ;: names
|
||||
1
|
||||
Loading…
Add table
Add a link
Reference in a new issue