Example #1
0
def eval_pipeline(state_monad, state):
    future = State.evalState(state_monad, state)
    return __handle_output(future)
Example #2
0
def eval_pipeline(state_monad, state):
    return State.evalState(state_monad, state)
Example #3
0
    def test_eval_state(self):
        value = 7
        state = list()
        m = return_(value)

        self.assertEquals(value, State.evalState(m, state))