Multiline lambda function in python.
Give arguments to lambdafunction() and include multiple lines of code in a single lambda function.
pip install multiLineLambda
lambdaFunction.lambdafunction("list of string arguments", caller="string argument which gets calls the function.")
- First list of arguements should be wrapped in single function. eg.
- All the syntax should be same as python. Use "\t" for indentation
- Function should have some return method. eg.
- Then pass the function name to caller. (Here, "add") eg.
lambdaFunction.lambdafunction("def add(x, y) :","...", caller="...")
lambdaFunction.lambdafunction("def add(x, y) :","\n\treturn(x+y)", caller="...")
lambdaFunction.lambdafunction("def add(x, y) :","\n\treturn(x+y)", caller="add(3, 6)")
returns -> 18