forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Make integers callable
Possible implement this with iterable integers and callable iterators
100(lambda x: print(f"hi {x}"))
could be equivalent to
`def call_int(int,arg_callable):
for i in range(100):
arg_callable(i)
usage like
10(10(lambda x:lambda y: print(x*y)))
could be interesting.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels