Robert Konigsberg, Jerome Mourits and myself have written several snippets that highlight the carefully designed Google Collections Library: PreconditionsPreconditions.checkNotNull(order.getAddress(), "order address"); Iterables.getOnlyElementassertEquals(jesse, Iterables.getOnlyElement(usersOnDuty)); Comparators.maxreturn Comparators.max(perKm, minimumDeliveryCharge); Objects.equal and hashCodere
Imploding Rails, Jesus DHH, and The Uncle Ben Principle Wednesday, October 10 2007 - Blog Update: I've responded to many of the comments below here I love Rails - let me just get that out of the way right now. As many who've read my blog know, I think it's the Dog's Bollucks in terms of a developer's framework. But that seems to be a problem with Rails - the focus is on rapid development only. W
blog 14 Sep 2007 posted by John Clements The word “abstract” is common in computer science. An abstract thing is one where some part of the whole is unspecified. For instance, the expression “3*x + 3” is an abstraction of the expression “3*4+3”, because the “x” is unspecified. Likewise, a function is an abstraction over some set of values, supplied when the function is called. The word “general” i
SKK の名前を考えたときに Combinatory Logic での有名な等式 SKK = I が念頭にあったのは事実です.ずい分昔に Henk Barendregt さんにこの話をしたこともありました.Combinatory Logic は一般にはあまり知られていないので簡単に紹介をしてみます. Combinatory Logic は,λ計算と同様,すべての項 (term, 計算機の言葉で言えば,プログラムに相当するもの)が関数であるような体系である.Logic という名前がついているのは,その上に論理を展開することを目的としていたからであるが,論理の体系としては成功しなかった.しかし,λ計算と密接な関係があることから,計算の体系としては重要なものである. Combinatory Logic の項 (combinator) は以下の文法規則で定義される. 項 ::= 変数 | 定数 |
This Wiki is frozen. Use GitHub for reports, discussions, etc. 訳あって Haskell 試食中. モナドって, こんなイメージでいいんでしょうか? (参考ページ) やさしい Haskell 入門 (バージョン98) モナドのすべて haskell-jp ML MonadicContinuationPassingStyle (英語) 2ch Haskell スレ過去ログの 500 前後 慣れない内容は, 頭がしんどい 慣れない表現も, 頭がしんどい 両方いっぺんだと, もう○×△□… なので, ひとまず haskell は置いといて, scheme にしてみます. Intro. ふつうの「値」を包んで, ふわふわした謎な外見の何か(以下「ふわふわ」) にするラッパー ret (return のつもり)を考えよう. (ret 3)
どうでもいいプログラムとブログをノリノリで書きすぎだ ! レポートも書かないでこんなことばっかり情熱大陸… 気が付いたら世が開けて,黄色い太陽がサンサンとサンシャイン.すっかり生活ペースが狂いまくって 14 時に起きると言う本当に世間のルールよすいませんな今日この頃,みなさまいかがお過ごしでしょうか ? しかし,バッチリ狙い通り,私が尊敬する素晴らしい人たちから多数の反響があったので,麿は満足です. 「入門 Haskell」の著者,向井さんからコメントをいただきました. check n = not . null . drop n doTail n = unlines . head . dropWhile (check n) . tails . lines main = getContents >>= print . doTail 10 とかすれば reverse を使わず遅延評価を効かせた
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く