|
From: | Constantin Kulikov |
Subject: | [PATCH] Add new lisp function length= with bytecode support |
Date: | Tue, 7 Mar 2017 16:52:11 +0300 |
(defun length-cmp (seq n)(let* ((len (if seq (if (consp seq)(let ((tlen 0))(while (and seq (< tlen (1+ n)))(incf tlen) (setq seq (cdr seq)))tlen)(length seq))0)))(if (< len n) -1 (if (> len n) 1 0))))
[Prev in Thread] | Current Thread | [Next in Thread] |