2012-01-15 29 views
2

我想将下面的OCaml类型(非平衡二叉树)转换为Common Lisp,但作为一个CL新手,我不知道如何使用动态语言来完成它。如何使用CL表示树?

type 'a tree = 
    Leaf 
    | Node of 'a * 'a tree * 'a tree 

任何建议表示赞赏!

回答