Skip to content

Instantly share code, notes, and snippets.

Avatar

Octavian Neamțu oneamtu

View GitHub Profile
View gist:99106fa4ee856878ad10
def mapper(a)
b = a.map! { |x| x.nil? }
end
c = [nil]
expect(mapper(c)).to eq([true]) # => true
expect(mapper(c)).to eq([true]) # => false
You can’t perform that action at this time.