1 (princ "Hello ALSA world\n")
3 (princ "Two " (+ 1 1) "\n")
5 (defun myprinc (o) (progn (princ o)))
6 (myprinc "Printed via myprinc function!\n")
8 (defun printnum (from to) (while (<= from to) (princ " " from) (setq from (+ from 1))))
9 (princ "Numbers 1-10: ") (printnum 1 10) (princ "\n")
11 (defun factorial (n) (if (> n 1) (* n (factorial (- n 1))) 1))
12 (princ "Factorial of 10: " (factorial 10) "\n")
14 (princ "Float test 1.1 + 1.35 = " (+ 1.1 1.35) "\n")
15 (princ "Factorial of 10.0: " (factorial 10.0) "\n")
17 (setq alist '((one . first) (two . second) (three . third)))
18 (princ "alist = " alist "\n")
19 (princ "alist assoc one = " (assoc 'one alist) "\n")
20 (princ "alist rassoc third = " (rassoc 'third alist) "\n")