Search code examples
clojureclisp

How can i implement "doc" function in clisp?


In clojure, i can use doc as below:

Clojure> (doc juxt)
-------------------------
clojure.core/juxt

([f] [f g] [f g h] [f g h & fs]) Alpha - name subject to change. Takes a set of functions and returns a fn that is the juxtaposition of those fns. The returned fn takes a variable number of args, and returns a vector containing the result of applying each fn to the args (left-to-right). ((juxt a b c) x) => [(a x) (b x) (c x)]enter code here

It seems there is no such a function in clisp ? Then how can i implement such a function ?

Sincerely!


Solution

  • describe works:

    (describe #'expt)
    #<SYSTEM-FUNCTION EXPT> is a built-in system function.
    Argument list: (#:ARG0 #:ARG1)
    For more information, evaluate (DISASSEMBLE #'EXPT).nter code here