Function conch_runtime::spawn::for_loop
[−]
[src]
pub fn for_loop<T, I, S, E: ?Sized>(
name: T,
words: Option<I>,
body: Vec<S>,
env: &E
) -> For<I::IntoIter, S, E> where
I: IntoIterator,
I::Item: WordEval<E>,
S: SpawnRef<E>,
E: ArgumentsEnvironment + VariableEnvironment,
E::VarName: From<T>,
E::Var: From<E::Arg>,
Spawns a for
loop with all the fields when words
are evaluated, or with
the environment's currently set arguments if no words
are specified.
For each element in the environment's arguments, name
will be assigned
with its value and body
will be executed.