Note that there are some explanatory texts on larger screens.

plurals
  1. POfind about about the type of function parameters
    primarykey
    data
    text
    <p>can i somehow find all functions/macros that take a specific type of parameter ?</p> <p>for example, what function accepts a Namespace object as parameter ?</p> <p>(this is because i can create a namespace and store it in a var, but i don't know where i could use that var; what function might i pass that var to ?)</p> <p>here is some code:</p> <pre><code>user=&gt; (def working-namespace (create-ns 'my-namespace)) #'user/working-namespace ;i created a namspace and want to use it later user=&gt; (class working-namespace) clojure.lang.Namespace ; out of curiosity i found out that "working-namespace" is a Namespace object user=&gt; (ns working-namespace) nil working-namespace=&gt; ; but how do i switch to it ? this didn't do what i wanted... user=&gt; (refer working-namespace) java.lang.ClassCastException: clojure.lang.Namespace cannot be cast to clojure.lang.Symbol (NO_SOURCE_FILE:0) ; this did not work either as my expectations user=&gt; (the-ns working-namespace) #&lt;Namespace my-namespace&gt; user=&gt; (class (the-ns working-namespace)) clojure.lang.Namespace ; great, this gave me the same thing, a Namespace </code></pre> <p>hence the question: how do i use it dynamically (that's why i had put my namespace into a var) ? how do i get something useful for me from a var that points to a namespace ?</p> <p>i can try look around for functions that make use of a Namespace object or that convert it to something else. i did and only found "intern". searching by hand not seems not that promising</p> <p>what if i have this problem a million time ? is there an automated way to get me what i'm looking for without having to ask around each time ?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload