(setq LstOne (list nil nil nil nil nil nil))
(setq LstTwo (list T T T T T T T T))
(setq LstThree (list nil T T nil T nil nil))
(IsEveryItem 'T LstOne) -> nil
(IsEveryItem 'T LstTwo) -> T
(IsSomeItem 'nil LstOne) -> T
(IsSomeItem 'T LstOne) -> nil
(IsSomeItem 'T LstThree) -> T
(IsSomeItem 'T LstThree) -> T
(defun IsEverythingNil ( Lst / ) (if (= 0 (length (vl-remove 'nil Lst))) 'T nil))
But honestly, my approach seems kinda lame... so I've created this thread to see your professional suggestions about this task. :D
(cond
((apply 'and lst) "all t")
((apply 'or lst) "some t")
(t "all nil")
)
Code: [Select](cond
((apply 'and lst) "all non nil")
((apply 'or lst) "some non nil")
(t "all nil")
)
perfect quoting :)Code: [Select](cond
((apply 'and lst) "all non nil")
((apply 'or lst) "some non nil")
(t "all nil")
)
Nice ... fify ... retentively yours ... MP :)
< .. >
Nice ... fify ... retentively yours ... MP :)
I've never been able to understand how the words punctilious and pedantic have garnered a negative connotation.
(if
(and
embellishment_floated_cordially
embellishment_of_perceived_value
recipient_is_gracious
)
(its_all_good)
(all_hell_breaks_loose)
)
bool IsExpressionPrecise ( expression )
bool IsOriginalQuestionStatedClearly ( question )
I've never been able to understand how the words punctilious and pedantic have garnered a negative connotation.
I've never been able to understand how the words punctilious and pedantic have garnered a negative connotation.
because they rhyme with supercilious & hierophantic