I am new to LISP and was wondering how to correctly run a simple lisp program on Ubuntu Linux. Currently, I have a LISP file called “intmax.lisp” that contains the following code: (defun intmax (x y) (if (> x y) x y)) However, when I go to the command line and run: clisp intmax 2 4 To compare 2 and
Tag: common-lisp
extracting a n element from a list with dolist on lisp
I am trying to create a function where it takes a list of letters as parameter and a single letter as a parameter. I want to remove the single letter from the list. so if I call the function with (extract-all ‘n ‘(i n t e l l)), I want it to return i t e l l with the
How should functionality that requires root privileges be added to a Common Lisp library?
Original Question I’m trying to create a Lisp library that can, among other things, edit my system’s /etc/hosts file and nginx configurations. The problem I’m facing is that, because my Lisp image operates as an unprivileged user, my library can’t do these things. Ideally, when root powers were needed I’d have the ability to provide a password to my library