Comment detail
メソッド名一覧の表示 (Nested Flatten)This comment is reply for 1464 rubikitch: Common Lispのメソッドはクラス...(メソッド名一覧の表示). Go to thread root.
ぎゃぁ、fboundpが抜けてたorzorzorz
1 2 3 4 5 6 7 8 9 | (require :cl-ppcre)
(defun test_1 () 1)
(defun test_2 () 2)
(defun test_3 () 3)
(defparameter test_var 0)
(loop for f in (ppcre:regex-apropos-list "^test_" *package*)
when (fboundp f)
collect (cons f (funcall f))) ; => ((TEST_1 . 1) (TEST_3 . 3) (TEST_2 . 2))
|




onjo #1485() [ Common Lisp ] Rating0/0=0.00
(defun call-test (pakcage) (do-symbols (symbol pakcage) (when (and (fboundp symbol) (ppcre:scan "^test_" (symbol-name symbol))) (format t "~A => ~A~%" symbol (funcall (symbol-function symbol))))))Rating0/0=0.00-0+