2016-10-23 15 views

Antwort

3

Ja, aber es ist nicht notwendig Verschachtelung:

(cond (predicate1 consequent1) 
     (else (cond (predicate2 consequent2) 
        (else alternative)))) 

ist die gleiche wie:

(cond (predicate1 consequent1) 
     (predicate2 consequent2) 
     (else alternative)) 

nur mehr lesbar. Wenn nicht, könnten wir auch einfach if haben.

Verwandte Themen