[repl] Implement 'ans'