Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 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