📅  最后修改于: 2020-11-05 03:58:51             🧑  作者: Mango
到目前为止,我们已经看到了依次执行的语句。此外,Clojure中提供了语句来更改程序逻辑中的控制流。然后将它们分为控制语句流,我们将对其进行详细介绍。
Sr.No. | Loops & Description |
---|---|
1 | While Statement
The ‘while’ statement is executed by first evaluating the condition expression (a Boolean value), and if the result is true, then the statements in the while loop are executed. |
2 | Doseq Statement
The ‘doseq’ statement is similar to the ‘for each’ statement which is found in many other programming languages. The doseq statement is basically used to iterate over a sequence. |
3 | Dotimes Statement
The ‘dotimes’ statement is used to execute a statement ‘x’ number of times. |
4 | Loop Statement
The loop special form is not like a ‘for’ loop. The usage of loop is the same as the let binding. However, loop sets a recursion point |