関数型言語ML(SML, OCaml, etc.), Part 5
■ このスレッドは過去ログ倉庫に格納されています
0030デフォルトの名無しさん
2007/10/05(金) 15:43:24其の1 ローカルモジュール
#let module A = struct let add x = x + 1 end in A.add 3;;
- : int = 4
其の2 開いて閉じる
#type t = [ `A of int | `B of bool];;
type t = [ `A of int | `B of bool ]
# type u = private [< t > `A];;
type u = private [< t > `A ]
private row応用範囲広すぎ。
■ このスレッドは過去ログ倉庫に格納されています