Re: Handling deep list recursion

[email protected]
Newsgroups gmane.emacs.help
Message-ID <[email protected]>
Heime <[email protected]> writes:

> I want to handle the recursion situation when list is too big.  
> What would be the best plan when it is too long?  Catch the error 
> if it happens and continue with nonlocal exit than continues with
> cl-every?  Of compute the length beforehand?
>

1. If someone does not provide a recursive solution to your
question, then you might consider writing an iterative
solution using ‘dolist’ or ‘while’ or ‘do’.

   (info "(elisp) Iteration")

2. Besides ‘cl-every’, you could write a solution using
‘cl-find-if’ or ‘cl-find-if-not’ or ‘cl-notany’.

-- 
The lyf so short, the craft so long to lerne.
- Geoffrey Chaucer, The Parliament of Birds.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.