returns the next line of input in list context