def middleware(func):
    """ Decorator for func(store, get_next, action)
    to more tersely make a middleware function """
    return lambda store: lambda get_next: lambda action: func(store,
        get_next, action)
