racket - List all user-defined variables in scheme -


in python can use dir() , in racket (5.2) can do

 (require xrepl)  ,apropos 

to list of defined variables. portable method exists same in schemes? done, how filter out system , module variables? full list of variables rather daunting in racket.

to names exported specific module in racket use module->exports. other implementations, need in documentation.

> (module->exports 'racket/list) '((0    (add-between ()) (append* ())    (append-map ())    (argmax ())      (argmin ())     (cons? ()) (count ())    (drop ())        (drop-right ()) (eighth ()) (empty ())    (empty? ())      (fifth ())      (filter-map ())    (filter-not ())  (first ())      (flatten ())    (fourth ())      (last ())       (last-pair ())    (make-list ())   (ninth ())      (partition ())    (range ())       (rest ())       (second ())    (seventh ())     (shuffle ())    (sixth ())    (split-at ())    (split-at-right ()) (take ())    (take-right ())  (tenth ()) (third ()))) '((0 (remove-duplicates ()))) 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -