Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
CircuitSacul committed Dec 2, 2022
1 parent 2813e34 commit ba7ddfd
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,18 @@
# mockeval
Cursed lambdas because yes
Cursed lambdas because yes.

## Usage
```py
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.

0 comments on commit ba7ddfd

Please sign in to comment.