2006-06-10から1日間の記事一覧
基本的なリスト処理関数はPreludeListの中にある.Haskell 98 Reportに実装のサンプルが記述されている.http://www.haskell.org/onlinereport/standard-prelude.html head, tail, last, init, null head :: [a] -> a head (x:_) = x head [] = error "Prelu…
基本的なリスト処理関数はPreludeListの中にある.Haskell 98 Reportに実装のサンプルが記述されている.http://www.haskell.org/onlinereport/standard-prelude.html head, tail, last, init, null head :: [a] -> a head (x:_) = x head [] = error "Prelu…