A package for writing multiple lines in a lambda function.
Project description
Multiline lambda Function
Multiline lambda function in python. Give arguments to lambdafunction() and include multiple lines in a single lambda function.
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.
- 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
when,
print(lambdaFunction.lambdafunction("def add(x, y) :","\n\treturn(x+y)", caller="add(3, 6)"))
prints -> 18.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
multiLineLambda-0.0.3.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for multiLineLambda-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02b20c8844b2246616e881d02341b06d7d20c0b023219af6178ee53aff54fdac |
|
MD5 | b03df50be3fbd4e952cdddb45c73a640 |
|
BLAKE2b-256 | cb1bb5a64f4c0790dd21ae656615c5174b39394f36f9273d1ae00ae8b67844b8 |