node->cons fonksiyonu, sadece test için
This commit is contained in:
@@ -43,6 +43,15 @@
|
|||||||
(setf *yeni-satır* t))
|
(setf *yeni-satır* t))
|
||||||
|
|
||||||
|
|
||||||
|
(defun node->cons (node)
|
||||||
|
"node u listeye çevirir."
|
||||||
|
(if (stringp node)
|
||||||
|
node
|
||||||
|
(if (null (children node))
|
||||||
|
(list (tag node) (props node) (value node))
|
||||||
|
(append (list (tag node) (props node))
|
||||||
|
(mapcar #'node->cons (children node))))))
|
||||||
|
|
||||||
(defparameter bir-node
|
(defparameter bir-node
|
||||||
(node! :html (list (node! :head
|
(node! :html (list (node! :head
|
||||||
(list (node! :title nil nil "başlık"))
|
(list (node! :title nil nil "başlık"))
|
||||||
|
|||||||
Reference in New Issue
Block a user