Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- > [nil].sum
- => 0
- > [5,nil].sum
- TypeError: nil can't be coerced into Fixnum
- > [nil,5].sum
- NoMethodError: undefined method `+' for nil:NilClass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement