mirror of
https://github.com/bearlanguageorg/bear.git
synced 2026-08-26 16:07:01 +00:00
Tier Three: Added threads/jobs
This commit is contained in:
@@ -10,7 +10,7 @@ fn main() {
|
||||
|
||||
// use the index for computation
|
||||
let nums = [10, 20, 30, 40, 50]
|
||||
let sum = 0
|
||||
mut sum = 0
|
||||
for i, v in nums {
|
||||
if i % 2 == 0 {
|
||||
sum += v
|
||||
|
||||
Reference in New Issue
Block a user