2000-05-11から1日間の記事一覧
備忘録目次 - ロバの耳 h1 = Hash[*%w[Apple red Tomato red Papper red]] h2 = Hash[*%w[Spinach green Celery green Papper green]] a1 = h1.keys a2 = h2.keys p a1 - a2 #=> ["Tomato", "Apple"] p a1 & a2 #=> ["Papper"] キーを取得してから 片方の配…
備忘録目次 - ロバの耳 h1 = Hash[*%w[Apple red Tomato red Papper red]] h2 = Hash[*%w[Spinach green Celery green Papper green]] a1 = h1.keys a2 = h2.keys p a1 - a2 #=> ["Tomato", "Apple"] p a1 & a2 #=> ["Papper"] キーを取得してから 片方の配…