私はtrenaryツリーを実装しようとしていますが、次のエラーが発生しています。 エラー:必要な Trenarytree.java:46: error: constructor Trenarytree in class Trenarytree cannot be applied to given types;
Trenarytree tree = new Trenarytree(1);
は三木の種類が定義されます。私は、関数は三元ツリーに一致するように& foldlのをマップ変更する必要が datatype ’a tree =
Leaf of ’a
| Node of ’a tree * ’a tree * ’a tree
... fun tree_map (f : ’a -> ’b) (t : ’a tree) : ’b tree =
f,nil) = nil
|