From 8cfffbeccdab028f780dcaf9f4ffaf97d7393a1e Mon Sep 17 00:00:00 2001 From: Daniel Cerqueira Date: Sun, 16 Aug 2026 12:59:14 +0100 Subject: add diff operator - and remove and diff and differ - and update documentation - and update all lali scripts --- examples/speech/pt-random.lali | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'examples/speech/pt-random.lali') diff --git a/examples/speech/pt-random.lali b/examples/speech/pt-random.lali index e038f68..5454dc1 100755 --- a/examples/speech/pt-random.lali +++ b/examples/speech/pt-random.lali @@ -25,13 +25,13 @@ (defun assoc (el lst) (fill - ((dif el (car (car lst))) (car lst)) + ((diff el (car (car lst))) (car lst)) ((algo lst) '(f f f)) (f (assoc el (cdr lst))))) (defun without (el lst) (fill - ((dif el (car lst)) f) + ((diff el (car lst)) f) ((algo (car lst)) t) (f (without el (cdr lst))))) @@ -83,7 +83,7 @@ (set 'question-score target-question) (set 'my-words (readl)) - (differ my-words '(f)) + (diff my-words '(f)) (set 'answer-score (get-answer-score (map (lambda (word) @@ -92,7 +92,7 @@ (princ "\n~") (newline) (fill - ((dif target-answer + ((diff target-answer (+ question-score answer-score)) 'correct) (f 'wrong)))) @@ -100,8 +100,8 @@ (defun loop () (set 'res (main)) (fill - ((dif res 'correct) (loop)) - ((dif res 'wrong) (prog (princ ">> errado") (newline))) + ((diff res 'correct) (loop)) + ((diff res 'wrong) (prog (princ ">> errado") (newline))) (f f))) -- cgit