[Solved] Creating a method in Common Lisp

[ad_1] To create a function in common lisp you can use the defun operator: (defun signal-error (msg) (error msg)) Now you can call it like so: (signal-error “This message will be signalled as the error message”) Then you can insert it in your code like this: (print “Enter number”) (setq number (read)) ;; <- note … Read more

[Solved] Lisp – string concat

[ad_1] CL-USER 1 > (format nil “This is too easy. ~a day I’ll learn Lisp.” 1) “This is too easy. 1 day I’ll learn Lisp.” [ad_2] solved Lisp – string concat