other 【Ruby】Array#rassocの動き
問題集駆動学習。解説にある説明だけではrassocの動きがよくわからないので、挙動から探る。 rassocの説明 rssocメソッドは配列の配列を検索します。その1番目の要素が引数に渡っている要素と等しい最初の要素を返します。 実際の動き ...
other
other
other
other
other
other
other
other
other
other