[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Passing a list to a function

From: Emanuel Berg
Subject: Re: Passing a list to a function
Date: Mon, 12 Jul 2021 14:01:25 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

lisa-asket wrote:

> How can I make [a function] take [a] list as an argument?

It works like any other function and argument:

(defun is-this-a-list (lst)
  (listp lst) )

(is-this-a-list 1) ; nil
(is-this-a-list '(1 2 3)) ; t

underground experts united

reply via email to

[Prev in Thread] Current Thread [Next in Thread]