basic/match-pattern/option #693
Replies: 11 comments 24 replies
-
此处的 |
Beta Was this translation helpful? Give feedback.
-
i am a looser |
Beta Was this translation helpful? Give feedback.
-
Some(5)与match 模式中分支 Some(i)匹配,i被解构成5. |
Beta Was this translation helpful? Give feedback.
-
从ADT(algebraic data type)角度理解,要比从null角度理解更好。 |
Beta Was this translation helpful? Give feedback.
-
I am a looser |
Beta Was this translation helpful? Give feedback.
-
是不是等同于 |
Beta Was this translation helpful? Give feedback.
-
飘了,没看到习题 |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I am tighter |
Beta Was this translation helpful? Give feedback.
-
Option其实是Maybe类型(函数式编程中的可有可无的类型)。 Some(3).map(|x|x+1).map(|x|x*2); 你可以安全的对一个 |
Beta Was this translation helpful? Give feedback.
-
新手很难理解 几点: |
Beta Was this translation helpful? Give feedback.
-
basic/match-pattern/option
https://course.rs/basic/match-pattern/option.html
Beta Was this translation helpful? Give feedback.
All reactions