cond() - why ((t nill)) is com
hi(cond((= s "Y") 1) ((= s "y") 1) ((= s "N") 0) ((= s "n") 0) (t nil))
usually functions return nill when an empty value is issue, in cond returning nill is exposed to the developer...why? With / without is the same return (nil). So why its a common way?(according to docs) I think it is just an example to beginners to know the use of t symbol with cond function and nothing's more. Is there any use of t byond the self explained true? As far as I know , no.
The use of t at the end of cond function is to pass any value you want if the arguments that passed to the function are not to equal to any value. Not sure what u mean... Do you know what is the use of symbol t at the end of cond function? As i understand....if t equal to t...than return nill Or maybe its a defult if none is true. But why?
页:
[1]
2