You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
User-defined function can be passed as a parameter to the “for_loop” action (this can be probably made in a generic way, not just for the purpose of cycles).
Loop itself is action calling given function, with provided parameters.
deffunction_1(obj: Generic, idx: int, *, an: Optional[str] =None) ->None:
obj.hooray(idx, an="action_name_2")
defmain():
...
obj.nop() # just to show that it is there
...
cycles.for_loop(function_1, 0, 10, 1, {"action_name": "a1_for_body", "obj": obj}, an="a1_for")
The code will approximately be like:
Current state: prepared data structures, no support at all.
The text was updated successfully, but these errors were encountered: