Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我看不到任何通常在其他语言中发现的AND或OR类型的运算符,它们可以与 if 条件结合以检查多个条件。
如何在 Racket 中实现这些类型的任务?
我知道,cond但我想不出解决我问题的方法。
cond
它在那里:文档
Welcome to DrRacket, version 5.3.3.5 [3m]. Language: racket [custom]. > (and (even? 10) (odd? 10)) #f > (or (even? 10) (odd? 10)) #t