Update all new Tasks
This commit is contained in:
parent
00a190b0a6
commit
91df62d461
5697 changed files with 93386 additions and 804 deletions
14
Task/Odd-word-problem/PicoLisp/odd-word-problem-1.l
Normal file
14
Task/Odd-word-problem/PicoLisp/odd-word-problem-1.l
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
(de oddWords ()
|
||||
(use C
|
||||
(loop
|
||||
(until (sub? (prin (setq C (char))) "!,.:;?"))
|
||||
(T (= "." C))
|
||||
(setq C (char))
|
||||
(T
|
||||
(= "."
|
||||
(prin
|
||||
(recur (C)
|
||||
(if (sub? C "!,.:;?")
|
||||
C
|
||||
(prog1 (recurse (char)) (prin C)) ) ) ) ) ) )
|
||||
(prinl) ) )
|
||||
2
Task/Odd-word-problem/PicoLisp/odd-word-problem-2.l
Normal file
2
Task/Odd-word-problem/PicoLisp/odd-word-problem-2.l
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
(in "txt1" (oddWords))
|
||||
(in "txt2" (oddWords))
|
||||
Loading…
Add table
Add a link
Reference in a new issue