Cursed lambdas because yes
Project description
mockeval
Cursed lambdas because yes.
Usage
from mockeval import var, val
times2 = var.x * 2
print(times2.evl(x=2)) # 4
list_with_unkowns = val([1, 2, var.third, var.fourth])
print(list_with_unkowns.evl(third=3, fourth=4)) # [1, 2, 3, 4]
print(list_with_unkowns.map(sum).evl(third=3, fourth=4)) # 10
Why?
yes.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mockeval-0.1.3.tar.gz
(2.8 kB
view details)
Built Distribution
File details
Details for the file mockeval-0.1.3.tar.gz
.
File metadata
- Download URL: mockeval-0.1.3.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.8.15 Linux/5.15.0-1023-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 429ccc4958e7df0e3efaf171c1126a80306c427bf134f209f060423cf9a33ad7 |
|
MD5 | 33381c2d6d26293121f9197b014faf19 |
|
BLAKE2b-256 | e85fd6882f5397d5b541e688e8f772be5e035a1785d88864122ecfc23557236d |
File details
Details for the file mockeval-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: mockeval-0.1.3-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.8.15 Linux/5.15.0-1023-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed72b165fc0ae9eee5622917eb12845caf525d261352c00f6115e75b07b97146 |
|
MD5 | e8ce2048e30fc3844e6de82c64a9a697 |
|
BLAKE2b-256 | d36fc721f4ce9b746f1eac71d72a8784778b334ca2a2311e44c54be535df1435 |