官术网_书友最值得收藏!

  • Learning Rust
  • Paul Johnson Vesa Kaihlavirta
  • 99字
  • 2021-07-02 23:07:23

Conditions, Recursion, and Loops

Loops and conditions within any programming language are a fundamental aspect of operation. You may be looping around a list attempting to find when something matches, and when a match occurs, branching out to perform some other task; or, you may just want to check a value to see whether it meets a condition. In any case, Rust allows you to do this.

In this chapter, we will cover the following topics:

  • Types of loop available
  • Different types of branching within loops
  • Recursive methods
  • When the semicolon (;) can be omitted and what it means
主站蜘蛛池模板: 和田县| 沁源县| 渝中区| 济南市| 根河市| 井陉县| 封开县| 古交市| 东乡县| 乐都县| 灵寿县| 平利县| 九江市| 南安市| 榆中县| 抚宁县| 安丘市| 武夷山市| 达孜县| 元江| 屯留县| 突泉县| 盘山县| 固始县| 罗田县| 聂荣县| 满城县| 英超| 平山县| 太保市| 时尚| 文安县| 搜索| 靖州| 双峰县| 聊城市| 南京市| 民乐县| 枝江市| 肥东县| 澎湖县|