Comment detail

メソッド名一覧の表示 (Nested Flatten)

This comment is reply for 1485 onjo: 変数の定義でもシンボルはインターンされる...(メソッド名一覧の表示). 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))

Index

Feed

Other

Link

Pathtraq

loading...