mirror of
https://github.com/dschmenk/PLASMA.git
synced 2025-01-24 20:31:12 +00:00
Add PROG example
This commit is contained in:
parent
0ddec876ac
commit
439216d437
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)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
Loading…
x
Reference in New Issue
Block a user