Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
11
Task/Loops-For/Emacs-Lisp/loops-for.l
Normal file
11
Task/Loops-For/Emacs-Lisp/loops-for.l
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
;; Lisp implementation of c-for is like:
|
||||
;; (let ((i nil))
|
||||
;; (while (progn (setq i (if (not i) 0 (1+ i) )) ;; if value of i is nil, initialize its value to 0, if else, add 1
|
||||
;; (< i 10)) ;; end loop when i > 10
|
||||
;; (... body ...) ) ) ;; loop body
|
||||
|
||||
(let ((i nil) (str ""))
|
||||
(while (progn (setq i (if (not i) 0 (1+ i) ))
|
||||
(< i 5))
|
||||
(setq str (concat str "*"))
|
||||
(message str) ) )
|
||||
Loading…
Add table
Add a link
Reference in a new issue