検索

phrase: max: clip:
target: order:
Results of 1 - 3 of about 3 for acc (0.012 sec.)
高階関数 - Rust By Example 日本語版 11738
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... et upper = 1000; // Imperative approach // Declare accumulator variable // 宣言型プログラミングによるアプ ... ローチ // 値を蓄積する変数を宣言 let mut acc = 0; // Iterate: 0, 1, 2, ... to infinity // 0から ... ループを終了 break; } else if is_odd(n_squared) { // Accumulate value, if it's odd // 奇数ならば値を値を足し ... あわせていく。 acc += n_squared; } } println!("imperative style: {}", ...
https://man.plustar.jp/rust/example/fn/hof.html - [similar]
Diverging functions - Rust By Example 日本語版 8910
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... { fn sum_odd_numbers(up_to: u32) -> u32 { let mut acc = 0; for i in 0..up_to { // Notice that the return ... nts of the match expression. false => continue, }; acc += addition; } acc } println!("Sum of odd numbers ...
https://man.plustar.jp/rust/example/fn/diverging.html - [similar]
Rust By Example 日本語版 7217
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 化 let point: Point = Point { x: 10.3, y: 0.4 }; // Access the fields of the point // pointのフィールドにア ... タプルをインスタンス化 let pair = Pair(1, 0.1); // Access the fields of a tuple struct // タプルのフィール ... ime is inferred and does not have to be specified. Accessing or modifying a mutable static variable is un ... HRESHOLD: i32 = 10; fn is_big(n: i32) -> bool { // Access constant in some function // 関数内から定数を参 ...
https://man.plustar.jp/rust/example/print.html - [similar]
PREV 1 NEXT