pub fn seq<S, I, A, R>(iter: I) -> Sequence<I, A, R>Expand description
An action that consumes and performs an iterator of actions in sequence, one after another.
§Example
ⓘ
// A list of enemies we should attack in turn
let enemies = vec![
    ugly_goblin,
    stinky_troll,
    rude_dwarf,
];
// Attack each enemy, one after another
seq(enemies
    .into_iter()
    .map(|enemy| attack(enemy)))