Junior
Decorated function repeat
livecode
Task condition
Write a decorator that takes a natural number n — the number of repetitions — and will repeat the call of the decorated function n times, as well as return the value from the last call.
livecode
Task condition
Write a decorator that takes a natural number n — the number of repetitions — and will repeat the call of the decorated function n times, as well as return the value from the last call.