lib/memory.rb
def free!(frames:)
    @free_frames.push *frames

    to_h.select { |frame, _content| frames.include? frame }.values.flatten.size
  end
# Frees the given frames, i.e add them back to the free frame list
#
# @param frames [Array] the frames to deallocate
#
# @return [Integer] the number of bytes that were freed
Frees the given frames, i.e add them back to the free frame list
Frees the given frames i . e add them back to the free frame list
def free!(frames:)
    @free_frames.push *frames
    to_h.select { |frame, _content| frames.include? frame }.values.flatten.size
  end
def free! ( frames : ) @free_frames . push * frames to_h . select { | frame , _content | frames . include? frame } . values . flatten . size end
Frees the given frames, i.e add them back to the free frame list
Frees the given frames i . e add them back to the free frame list
the number of bytes that were freed
the number of bytes that were freed
Integer
frames
the frames to deallocate
the frames to deallocate