Skip to content

Commit fa1f3c8

Browse files
committed
simplify inplace syntax
1 parent 88b8db6 commit fa1f3c8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

test/nlp/batch_api.jl

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@
1919
function make_inplace_batch_model()
2020
base_model = SimpleNLPModel()
2121
updates = [
22-
begin
23-
param = p
24-
nlp -> (nlp.p = param)
25-
end for p in p_values
22+
nlp -> (nlp.p = p) for p in p_values
2623
]
2724
return InplaceBatchNLPModel(base_model, updates)
2825
end

0 commit comments

Comments
 (0)