Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ocaml で型ツリーを定義しましょう。
type 'a tree = T of 'a * 'a list;;
このグラフを 2 つの方法でトラバースしたいと思います: (1) ルートからリーフへ (2) リーフからルートへ
手伝って頂けますか?