A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
15
Task/Inverted-index/PicoLisp/inverted-index.l
Normal file
15
Task/Inverted-index/PicoLisp/inverted-index.l
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
(off *MyIndex)
|
||||
|
||||
(use Word
|
||||
(for File '("file1" "file2" "file3")
|
||||
(in File
|
||||
(while (skip)
|
||||
(if (idx '*MyIndex (setq Word (till " ^I^J^M" T)) T)
|
||||
(push1 (car @) File)
|
||||
(set Word (cons File)) ) ) ) ) )
|
||||
|
||||
(de searchFor @
|
||||
(apply sect
|
||||
(extract
|
||||
'((Word) (val (car (idx '*MyIndex Word))))
|
||||
(rest) ) ) )
|
||||
Loading…
Add table
Add a link
Reference in a new issue