function startswith(str::AbstractString, pats...)
    for pat in pats
        if start(search(str, pat)) != 1
            return false
        end
    end
    true
end

function constantly(value)
    function(_...)
        value
    end
end

function startswith(str::AbstractString, pats...)
    for pat in pats
        if start(search(str, pat)) == 1
            return true
        end
    end
    false
end

function constantly(value)
    function(_...)
        value
    end
end

Fix startswith function, which was horribly borken.
Fix startswith function, which was horribly borken.
