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 details)
Built Distribution
File details
Details for the file multiLineLambda-0.0.3.tar.gz
.
File metadata
- Download URL: multiLineLambda-0.0.3.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7adc3f0f79d92799d6fb3f0b44a5a86eb1c2f1bf6d2b00c734d98b2f9318bee4 |
|
MD5 | 83f705fcefed3e074b1b6ad7723c3b29 |
|
BLAKE2b-256 | bd0ece5d0d509354ee2dde7e58899bc0427b6f6c6671f1f22263b5e1d7a280f5 |
File details
Details for the file multiLineLambda-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: multiLineLambda-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02b20c8844b2246616e881d02341b06d7d20c0b023219af6178ee53aff54fdac |
|
MD5 | b03df50be3fbd4e952cdddb45c73a640 |
|
BLAKE2b-256 | cb1bb5a64f4c0790dd21ae656615c5174b39394f36f9273d1ae00ae8b67844b8 |