forked from extern/nushell
Currently `last n` memory use is O(input), while it should be O(n). This patch replaces code collecting all of last's input into a Vec<_> with collecting into a bounded VecDeque<_>. UI/UX remain are unchanged.
Currently `last n` memory use is O(input), while it should be O(n). This patch replaces code collecting all of last's input into a Vec<_> with collecting into a bounded VecDeque<_>. UI/UX remain are unchanged.