class Byebug::History

def last_ids(n)


Array of ids of the last n commands.
def last_ids(n)
  from, to = 1 + self.size - n, self.size
  (from..to).to_a
end