OCaml
忘れてた。カウンタを作ったときは継承して3倍速いred_counterも作ることにしているんだった。 # class red_counter= object inherit counter as super method push = super#push; super#push; super#push; end;; Warning S: this expression should have ty…
The standard library http://pauillac.inria.fr/ocaml/htmlman/manual034.html
「!」は否定じゃなくて参照型の中身を取り出す演算子なのか!http://ocaml.jp/OCaml%E5%85%A5%E9%96%80%283%29
お酒飲んだら眠かったのが一周して眠く無くなった お風呂にお湯を入れている新しい言語覚えたらとりあえずFibだよね。最初の10個とか取りたいけど http://pauillac.inria.fr/ocaml/htmlman/libref/List.html には「頭10個を取る」って関数はなさそうだ。Pyth…