mirror of
https://github.com/dschmenk/PLASMA.git
synced 2026-03-14 16:16:40 +00:00
Add PROG example
This commit is contained in:
11
src/lisp/prog.lisp
Normal file
11
src/lisp/prog.lisp
Normal file
@@ -0,0 +1,11 @@
|
||||
(label length (lambda (l)
|
||||
(prog (u v)
|
||||
(setq v 0)
|
||||
(setq u l)
|
||||
a (cond ((null u),(return v)))
|
||||
(setq u (cdr u))
|
||||
(setq v (+ 1 v))
|
||||
(go a)
|
||||
)
|
||||
)
|
||||
)
|
||||
Reference in New Issue
Block a user