def _get_vuln_line(reqs: list, pkg: str, ver: str) ->int:
    """Return the line of first occurrence of pkg and version in path or 0."""
    line = list(map(lambda y: y[3], filter(lambda x: x[1] == pkg and x[2] ==
        ver, reqs)))
    return line[0] if line else 0
