検索

phrase: max: clip:
target: order:
Results of 1 - 6 of about 6 for sum (0.015 sec.)
Testcase: map-reduce - Rust By Example 日本語版 13033
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... Channel s.) In this example, we will calculate the sum of all digits in a block of numbers. We will do th ... the block into different threads. Each thread will sum its tiny block of digits, and subsequently we will ... sum the intermediate sums produced by each thread. Not ... s is our data to process. // We will calculate the sum of all digits via a threaded map-reduce algorithm. ...
https://man.plustar.jp/rust/example/std_misc/threads/testcase_mapreduce.html - [similar]
高階関数 - Rust By Example 日本語版 9157
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... の奇数を2乗した値の合計を求める。 println!("Find the sum of all the squared odd numbers under 1000"); let u ... proach // 関数型プログラミングによるアプローチ let sum_of_squared_odd_numbers: u32 = (0..).map(|n| n * n) ... のを .fold(0, |acc, n_squared| acc + n_squared); // Sum them // 足し合わせる。 println!("functional style: ... {}", sum_of_squared_odd_numbers); } オプション型 と イテレー ...
https://man.plustar.jp/rust/example/fn/hof.html - [similar]
Stringとの型変換 - Rust By Example 日本語版 8627
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... t turbo_parsed = "10".parse::<i32>().unwrap(); let sum = parsed + turbo_parsed; println!("Sum: {:?}", sum ...
https://man.plustar.jp/rust/example/conversion/string.html - [similar]
Diverging functions - Rust By Example 日本語版 8627
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... allows us to write code like this: fn main() { fn sum_odd_numbers(up_to: u32) -> u32 { let mut acc = 0; ... => continue, }; acc += addition; } acc } println!("Sum of odd numbers up to 9 (excluding): {}", sum_odd_n ...
https://man.plustar.jp/rust/example/fn/diverging.html - [similar]
Rust By Example 日本語版 7878
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... pe `List` // `Nil` は `List`型を持つ。 Nil } // Consume a list, and return the same list with a new eleme ... t turbo_parsed = "10".parse::<i32>().unwrap(); let sum = parsed + turbo_parsed; println!("Sum: {:?}", sum ... ox<i32>, Box<i32>); impl Pair { // This method "consumes" the resources of the caller object // `self` de ... r.destroy(); // Error! Previous `destroy` call "consumed" `pair` // エラー!先ほどの`destroy`で`pair`はすで ...
https://man.plustar.jp/rust/example/print.html - [similar]
テストケース: 単位を扱う - Rust By Example 日本語版 7457
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... add() returns a new `Length` struct containing the sum. // add()は`Length`の新しいインスタンスを返す。 // ... ce `Length` implements `Copy`, `add()` does not consume // `one_foot` and `one_meter` but copies them int ...
https://man.plustar.jp/rust/example/generics/phantom/testcase_units.html - [similar]
PREV 1 NEXT