I would like `prime` library to remain in the default gems or the bundled gems. I do competitive programming as a hobby, and I sometimes use it and find it useful. Since external libraries are usually not available for competitive prog...universato (Yoshimine Sato)
FYI: ```ruby p Float::INFINITY.real #=> Infinity p Float::INFINITY.imag #=> 0 p Float::NAN.real #=> NaN p Float::NAN.imag #=> 0 ``` Python and Octave have same behavior. Probably MATLAB does too. If we change the behavior of `r...universato (Yoshimine Sato)
+1 I second the proposal. ```ruby p [1, 2, 3] #=> [1, 2, 3] p "hello" #=> "hello" p 1.0 #=> 1.0 p({"x"=>1}) #=> {"x"=>1} p 1..2 #=> 1..2 p nil #=> nil p true #=> true p :name #=> :name p Array #=> Array ...universato (Yoshimine Sato)
```ruby n = 3 while n > 0 n -= 1 while n > 0 end ``` This `while_in_while.rb` is the file to be measured. ```ruby require "coverage" Coverage.start load "while_in_while.rb" pp Coverage.result # {"while_in_while.rb"=>[1, ...universato (Yoshimine Sato)
https://github.com/crystal-lang/crystal/pull/365 In Crystal language, these proposed methods are called `max_of`, `min_of`. Note: Crystal has `max`, `max_by`, `max_of`. This feature may not be innovative, but I think many Ruby users...universato (Yoshimine Sato)
FYI https://processing.org/reference/TAU.html Processing may not be a general purpose language, but it has `TAU` and `TWO_PI` on its core. Processing has `TAU` since 2013. DOI: 10.14736/kyb-2016-6-0943 http://www.kybernetika.cz...universato (Yoshimine Sato)
sawa (Tsuyoshi Sawada) wrote in #note-10: > I cannot follow the discussion because of the expression "multiplying `x % m` to 1 `y` times." What does that mean? "multiplying `x % m` to 1 `y` times"の意味は、「1に対して`(x % m)`を`y`回乗じること(又は、その値)」で...universato (Yoshimine Sato)