deftype 函式類似於 defrecord ,可以創建一個Java 物件類型,並具有建構子函式: (deftype Point [x y]) ;; => user.Point (.x (Point. 2 5)) ;; => 2 (.y (Point.
確定! 回上一頁