return function(L,p)L=L or 0 if p.type=="\067\079\073\078\095\065\068\068"then return L+p.coins end if p.type=="\067\079\073\078\095\083\085\066\084\082\065\067\084"then return L-p.coins end return L end
return (function(state,action)
    state = state or 0

    if action.type == "COIN_ADD" then
        return state + action.coins
    end

    if action.type == "COIN_SUBTRACT" then
        return state - action.coins
    end

    return state
end)