reduce: supply <acc> to the closure as pipeline input as well
This commit is contained in:
parent
e68f744dda
commit
d6d37b22ba
|
@ -120,8 +120,7 @@ impl Command for Reduce {
|
||||||
engine_state.signals().check(head)?;
|
engine_state.signals().check(head)?;
|
||||||
acc = closure
|
acc = closure
|
||||||
.add_arg(value)
|
.add_arg(value)
|
||||||
.add_arg(acc)
|
.run_with_value(acc)?
|
||||||
.run_with_input(PipelineData::Empty)?
|
|
||||||
.into_value(head)?;
|
.into_value(head)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user