Skip to content

NotShrirang/Multiline-lambda-Function

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

Multiline lambda Function

PyPI Latest Release License

Multiline lambda function in python. Give arguments to lambdafunction() and include multiple lines of code in a single lambda function.

PyPI :

pip install multiLineLambda

Dependencies

License

MIT

Syntax :

General Syntax :

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. lambdaFunction.lambdafunction("def add(x, y) :","...", caller="...")
  • All the syntax should be same as python. Use "\t" for indentation
  • Function should have some return method.
  • eg. lambdaFunction.lambdafunction("def add(x, y) :","\n\treturn(x+y)", caller="...")
  • Then pass the function name to caller. (Here, "add")
  • eg. lambdaFunction.lambdafunction("def add(x, y) :","\n\treturn(x+y)", caller="add(3, 6)") returns -> 18

About

Multiline lambda function in python.

Topics

Resources

License

Stars

Watchers

Forks

Languages