Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 338 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 338 Bytes

mockeval

Cursed lambdas because yes.

Usage

from mockeval import var, val

times2 = var.x * 2
print(times2.evl(x=2))  # 4

list_with_unknowns = val([1, 2, var.third, var.fourth])
print(list_with_unknowns.evl(third=3, fourth=4))  # [1, 2, 3, 4]

print(list_with_unknowns.map(sum).evl(third=3, fourth=4))  # 10

Why?

yes.