From cb20d79549ac815f55390cfbc6f4d2d07f51c6d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bogumi=C5=82=20Kami=C5=84ski?= Date: Tue, 3 May 2022 23:32:01 +0200 Subject: [PATCH] small stylistic change --- ch14.jl | 2 +- ch14_server.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ch14.jl b/ch14.jl index f5e1f7a..ef44458 100644 --- a/ch14.jl +++ b/ch14.jl @@ -78,7 +78,7 @@ function asian_value(T, X0, K, r, s, m, max_time) result = Float64[] start_time = time() while time() - start_time < max_time - append!(result, ThreadsX.map(_ -> payoff_asian_sample(T, X0, K, r, s, m), 1:10_000)) + append!(result, ThreadsX.map(i -> payoff_asian_sample(T, X0, K, r, s, m), 1:10_000)) end n = length(result) mv = mean(result) diff --git a/ch14_server.jl b/ch14_server.jl index 6c42493..4a4e1db 100644 --- a/ch14_server.jl +++ b/ch14_server.jl @@ -21,7 +21,7 @@ function asian_value(T, X0, K, r, s, m, max_time) start_time = time() while time() - start_time < max_time append!(result, - ThreadsX.map(_ -> payoff_asian_sample(T, X0, K, r, s, m), + ThreadsX.map(i -> payoff_asian_sample(T, X0, K, r, s, m), 1:10_000)) end n = length(result)