metadsl_core.function
This module is built on top of the abstraction
It adds the ability to have multiple arities and names attached to functions.
Because MyPy doesn’t support multiple arity generics, we need a seperate class for each arity of function.
Classes
|
Function with one arg. |
|
Function with three args. |
|
Function with two args. |
|
Function with zero args. |
- class metadsl_core.function.FunctionOne(function, args, kwargs)[source]
Function with one arg.
- from_fn(cls, fn, name=metadsl_core.maybe.Maybe[str](Maybe.nothing, [], {})) = FunctionOne.from_fn[source]
- function: Callable
- class metadsl_core.function.FunctionThree(function, args, kwargs)[source]
Function with three args.
- function: Callable
- class metadsl_core.function.FunctionTwo(function, args, kwargs)[source]
Function with two args.
- function: Callable