2006-06-01から1ヶ月間の記事一覧
Link SuggesterWikipediaのテキストに自動的にリンクを付与するソフトウェア.
PreludeListその2
完全数というのは自分の除く約数の和が自分に等しい数.例えば 6 = 1 + 2 + 3 28 = 1 + 2 + 4 + 7 + 14なので,6と28は完全数である.これをHaskellで書いてみる measure n = [ x | x <- [1..(n `div` 2)], n `mod` x == 0 ] perfect = [x | x <- [1..], x =…
基本的なリスト処理関数は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…
Google Suggestっぽい類義語検索.Googleが作ってるわけではないのだが.http://david.dotgeek.org/google/syn/
http://blogwatcher.pi.titech.ac.jp/blogWatcherが再開した.変更点はhttp://www.lr.pi.titech.ac.jp/blogwatcher/?location=first#h3_02を見るとだいたい以下のような感じだと思う. クローラが自動的にブログサイトを判別していたのをping serverやブログ…