import csv


def env_reader(infile: str) -> list:
    """
    Read environment list from infile.

    Parameters
    ----------
    infile : str
        Name of the file containing the environment list.

    Returns
    -------
    list
        Nested (2D) list of the environment.
    """
    with open(infile, 'r') as f:
        reader = csv.reader(f, quoting=csv.QUOTE_NONNUMERIC)  # QUOTE_NONNUMERIC changes everything to float
        # For every row of the list, append every row element to an environment row, then append environment row to environment
        environment = [[value for value in row] for row in reader]
    return environment