This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0x1eb70C7B4EEDE396ee651E63d75322915D51a676 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns oo.core) | |
;========================辅助函数========================= | |
;获取对象的类 | |
(defn class-of [object] | |
(let [ | |
metadata (meta object) | |
class (:class metadata) | |
] class) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns oo.core) | |
(defn factorial-1 [n] | |
(if (or (= n 0) (= n 1)) | |
1 | |
(*' n (factorial-1 (dec n))))) | |
(println (factorial-1 100)) | |
(defn factorial-2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<root> | |
<devicevendordef> | |
<vendorname>FILCO_MINILA</vendorname> | |
<vendorid>0x0a5c</vendorid> | |
</devicevendordef> | |
<item> | |
<name>[FILCO_MINILA] Map app to option</name> | |
<identifier>private.devicevendordef1</identifier> |