( ), , , . , . : , Ruby . . , Ruby. Ruby, .
, "". , , Ruby uniq. ( ), , , . :
def process
distincts = Hash.new
self.each { |words| words.split.each { |word| distincts[word] = nil }}
distincts.keys
end
, . , . Hash Set (, ,), . :
def process
distincts = Hash.new
self.each { |words| words.split.each { |word| distincts[word] = :present unless distincts[word] }}
distincts.keys
end
, (, ). , , , , ( , ).