Skip to content

Callable integers #14

Description

@mvirts

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions