2015-04-19から1日間の記事一覧
Haskellはforやwhileのような繰り返し構文がないんですね。なかなか戸惑いますが慣れでしょうか。早速、コンビネーションを得る関数を作ってみた。 module Main (main) where combination :: Integer -> [Integer] -> [[Integer]] combination n elems | n <…
Haskellはforやwhileのような繰り返し構文がないんですね。なかなか戸惑いますが慣れでしょうか。早速、コンビネーションを得る関数を作ってみた。 module Main (main) where combination :: Integer -> [Integer] -> [[Integer]] combination n elems | n <…