Abstract
- Returns a value like
5+6
- Can be part of a Statement like
5+6
inlet a = 5+6
Example
Rust Expression
if
is an Expression, so we can do the followinglet number = if condition { 5 } else { 6 };
Created: Jan 13, 2024
Modified: Jan 13, 2024
48 words, 1 min read
5+6
5+6
in let a = 5+6
Example
if
is an Expression, so we can do the following let number = if condition { 5 } else { 6 };