The "using an implicit hostname" example connects with TCPSocket.new(nil, port) to a server bound to the IPv4 loopback, then asserts that local_address.ip_address equals @host ("127.0.0.1"). This is flaky. A nil hostname resolves to the...ko1 (Koichi Sasada)
BTW Elixir has `into: obj` https://elixir.hexdocs.pm/comprehensions.html#the-into-option so if we introduce `Hash#<<`, we can construct a hash with this syntax. ```ruby for k in %w(foo bar), v in 1..3 then ["#{k}_#{v}", v] end int...ko1 (Koichi Sasada)
1. It seems simpler to use `each` with accumulation like that: ```ruby def foo(n, v) for i in 0...n, j in 0...n when i + j == v then [i, j] end end #=> def foo(n, v) _a = [] i = j = nil (0...n).each do i = it ...ko1 (Koichi Sasada)
test_stat_single fails intermittently: 1) Failure: TestGc#test_stat_single [test/ruby/test_gc.rb:198]: <12> expected but was <13>. The test reads the full GC.stat hash and then GC.stat(:count) separately and asserts they are eq...ko1 (Koichi Sasada)
just curious: `for ... then` for single iterator will makes `map` behavior like that? ```ruby for a in ary do a end # ary.each{it} for a in ary then a end # ary.map{it} ``` ko1 (Koichi Sasada)