|
|
От: |
kov_serg
|
|
| Дата: | 09.06.24 16:03 | ||
| Оценка: | 78 (2) | ||
-- lua
for conf in all_possible_conf(input) do
performstep(conf)
end // c++
for(auto conf : all_possible_conf_iter(input)) performstep(conf);
// или так
all_possible_conf(input,[](State &conf){ performstep(conf); });// pascal
it:=CreateAllPossibleConfIterator(input);
while(it.Next(state)) do performstep(state);