2008-01-22から1日間の記事一覧

random_number_generator

C++

TR1の擬似乱数生成器でrandom_shuffleまじめに作ったらそのままBoostになっちゃいました。。。 template<class Engine, class IntType = long> class random_number_generator { public: typedef Engine base_type; typedef IntType argument_type; typedef IntType result_type; random_number_g</class>…

遅延関数

Oz

declare fun lazy {Ints N} N|{Ints N+1} end L = {Ints 0} {Browse L} L あれ?こうなるはずなんだけど・・・ L Mozartの設定かなー・・・ Browse > Options > Representation... > Detail > Variable Status にチェック入れたら↓になった L うーむ・・・と…