ruby
puts ((6<<29)%3)
# =>0
puts Array.new.size
# =>0
puts [].sum
# =>0
参考
https://docs.ruby-lang.org/ja/latest/method/Array/i/sum.html
Go to list of users who liked
Share on X(Twitter)
Share on Facebook
More than 5 years have passed since last update.
puts ((6<<29)%3)
# =>0
puts Array.new.size
# =>0
puts [].sum
# =>0
参考
https://docs.ruby-lang.org/ja/latest/method/Array/i/sum.html
Register as a new user and use Qiita more conveniently
Go to list of users who liked