for example,
(cond ((< 2 1) 2 )((< 1 2 ) 1)) has value 1. OK;
But, I saw that (cond (diverge 1) (ture 0)) is undefined, if diverge does not terminate' in my major book.
What's the diverge in lisp??
I don't know that.
Also, I don't know exactly what is side effects in lisp.
As shown,
divergeandturewould name variables that are evaluated as booleans. The value of the entire expression is 1 ifdivergeis true, 0 iftureis true, andnilif neither is true.Since you did not show the context, especially how
divergeandtureare bound, more cannot be said about your snippet.Maybe you meant something like
(cond ((diverge 1) (ture 0))). Thendivergewould be an operator. It is not defined in the Common Lisp standard, so it most likely comes from somewhere else in your book.