3 最佳答案 它叫做 progn . Special Operator-6ren">
gpt4 book ai didi

clojure - Common Lisp 中 Clojure 的 "do"相当于什么?

转载 作者:行者123 更新时间:2023-12-04 00:07:51 26 4
gpt4 key购买 nike

也就是说,一个表单按顺序评估子表单并返回最后一个评估值,例如

(do (println "Hello World") 3) => 3

最佳答案

它叫做 progn .

Special Operator PROGN

Syntax:

progn form* ⇒ result*

Description:

progn evaluates forms, in the order in which they are given.

The values of each form but the last are discarded.

关于clojure - Common Lisp 中 Clojure 的 "do"相当于什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13451322/

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