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)?;
|
||||
acc = closure
|
||||
.add_arg(value)
|
||||
.add_arg(acc)
|
||||
.run_with_input(PipelineData::Empty)?
|
||||
.run_with_value(acc)?
|
||||
.into_value(head)?;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user