空の配列に対するRubyのメソッドの挙動(数学寄り) - Qiita

以下の結果は何なのかという話。空の配列でバグったら格好悪いので復習する。p [].any?p [].all?p [].combination(0).to_ap [].combination(…