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
Post a Comment