gpt4 book ai didi

scheme - #:when keyword information

转载 作者:行者123 更新时间:2023-12-02 10:19:43 27 4
gpt4 key购买 nike

在哪里可以找到有关 DrRacket 中 #:when 构造的文档?

这是完整的示例:

(define (problem_9 sum)
(for*/first ([c (in-range 3 (- sum 2))]
[b (in-range 2 c)]
[a (in-range 1 b)]
#:when (and (= (+ a b c) sum)
(= (+ (* a a) (* b b)) (* c c))))
(+ a b c)))

我明白它的目的,但想找到文档。

最佳答案

类似 for 的表达式中 #:when 的含义在 Reference documentation for for 中进行了解释。 。如果您在 Racket 文档中搜索 for*/first 并单击结果,您将看到它被记录为采用一系列 for 子句for-clause 的变体在页面顶部的 for 文档中进行了描述。

关于scheme - #:when keyword information,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6621425/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com