util.py 100 B

123
  1. def get_input(p, fn=id):
  2. with open(p) as f:
  3. return [fn(line) for line in f.readlines()]