From 578efdd523e5e4b482f40fae5a10386fdc1943d3 Mon Sep 17 00:00:00 2001 From: Quentin Leonetti Date: Sat, 13 Jul 2019 21:17:34 +0200 Subject: [PATCH] remove duplicated command print --- desktop/sources/scripts/library.js | 4 ---- examples/arrays.lisp | 8 ++++---- examples/logic.lisp | 10 +++++----- 3 files changed, 9 insertions(+), 13 deletions(-) diff --git a/desktop/sources/scripts/library.js b/desktop/sources/scripts/library.js index 532dc89..43649e4 100644 --- a/desktop/sources/scripts/library.js +++ b/desktop/sources/scripts/library.js @@ -24,10 +24,6 @@ function Library (ronin) { // TODO: Closes Ronin } - this.print = (...args) => { - console.log(...args) - } - // Logic this.gt = (a, b) => { diff --git a/examples/arrays.lisp b/examples/arrays.lisp index 3389fa1..fa87526 100644 --- a/examples/arrays.lisp +++ b/examples/arrays.lisp @@ -1,11 +1,11 @@ -(print (map (lambda (a) (add a 1)) (1 2 3))) +(echo (map (lambda (a) (add a 1)) (1 2 3))) ( - (print (first (1 2 3))) - (print (rest (1 2 3))) + (echo (first (1 2 3))) + (echo (rest (1 2 3))) ) -(print +(echo (filter (lambda (a) (eq 0 (mod a 2))) (1 2 3 4 5)) diff --git a/examples/logic.lisp b/examples/logic.lisp index 2c612d9..dc22f79 100644 --- a/examples/logic.lisp +++ b/examples/logic.lisp @@ -1,11 +1,11 @@ ( - (print (lt 3 4)) + (echo (lt 3 4)) - (print (and 1 2 true 4)) + (echo (and 1 2 true 4)) - (print (and 1 false 2)) + (echo (and 1 false 2)) - (print (or false false 2 false)) + (echo (or false false 2 false)) - (if (gt 1 2) (print "ok") (print "not ok")) + (if (gt 1 2) (echo "ok") (echo "not ok")) ) \ No newline at end of file