Ruby のホームページにあったコード(何種類かある)について質問させていただきます。
lang
1# Ruby knows what you 2# mean, even if you 3# want to do math on 4# an entire Array 5cities = %w[ London 6 Oslo 7 Paris 8 Amsterdam 9 Berlin ] 10visited = %w[Berlin Oslo] 11 12puts "I still need " + 13 "to visit the " + 14 "following cities:", 15 cities - visited
コメントの
”Ruby knows what you mean, even if you want to do math on an entire Array”
の意味を教えてください。
「たとえ配列計算であったとしても、Rubyはあなたの言わんとすることがわかる」
ということでしょうか?
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。