Beispiel #1
0
def test_multibind():
    j = Just.unit(2)
    assert lifted.multibind(j, m_add_two, m_add_two) == Just(6)
Beispiel #2
0
def test_multiapply():
    j = Just.unit(curried_add)
    js = [Just(2), Just(2)]
    assert lifted.multiapply(j, *js) == Just(4)