Functional variant of 'oneof' function in Racket

前端 未结 3 1670
终归单人心
终归单人心 2020-12-20 04:31

I have written following function to find if one and only one of 5 variables is true:

(define (oneof v w x y z)
  (or (and v (not w) (not x) (not y)  (not z         


        
3条回答
提交回复
热议问题