This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let candidates = [ | |
'鬼舞双城', | |
'ASR_C', | |
'林打叶', | |
'ggg_Flash', | |
'奉皇涅槃', | |
'AnnatarHe', | |
'膜法小编', | |
'猎奇小编', | |
'lingersten', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Just found an interesting stuff | |
x = [[]] * 4 # [[], [], [], []] | |
x[0] << 1 # or x[0] .push 1 | |
# => [[1], [1], [1], [1]] | |
# Reason | |
x = [[]] * 4 | |
puts x.each {|a| puts a.object_id } | |
x = Array.new(4) { [] } |