love me some impure languages
(given a list of functions l and a starting value n, return a list of the intermediate values of applying l in order to n)
list(map(lambda f:[l.append(f(l.pop())), l[-1]][1], [l.append(lambda x:l.pop()), l.append(n), l][2]))[:-1]