【发布时间】:2021-03-10 22:15:05
【问题描述】:
我知道在 Racket 中比较例如两个数字,你会得到类似的结果。
(define (myMax x y)
(if (< x y) y x))
我的问题是如何比较具有 3 个或更多参数的函数。例如从参数中获取最大的数字。
(define (myMax x y z)
【问题讨论】:
-
您可以为此使用 max 内置程序
标签: racket comparison-operators