Function fil_actors_shared::v14::util::stack

source ·
pub fn stack(batch_returns: &[BatchReturn]) -> BatchReturn
Expand description

Computes a batch return that is the result of a sequence of batch returns applied to the previous successful results. Each batch’s size() must be equal to the previous batch’s success_count. Any fail codes then override the prior stack’s successful items, indexed against only those successful items. E.g. stack([OK, E1, OK, E2], [OK, E3], [E4]) => [E4, E1, E3, E2]