Thursday, 15 July 2010

design patterns - Clojure Function check -


How do I view a specific function name when I have 3 functions in the program? I want to know the names of those functions for selection of functions.

Say that linear kernel function, logistic-kernel function, and non-negative functions, when I call the program, one of those functions And I should see if it is linear, logistic or non-negative, so I can execute other functions related to the selected function.

I think that selecting the function will repeat the base code in my time. But choosing a function is probably not the best design that I can use in the closet.

FYI, at this stage, I already use the keyword "meta" to reach the function name, but when I create

  (defn isCernel [ Krn]  

compiler can not resolve 'krn var' (if ((= (str (: (name (meta # krn) ("logistic-kernel")) 0)) < / Div>

There are values ​​in the closure functions, such as numbers 4. It is mostly based on a large base (and functional programming in general) Most of the time we store functions However, this is not necessary. The names of the functions are not as values ​​ * instead of seeing that the name of the function passed matches the known name, rather than asking for more understanding " Does this function have the same value as value stored in var as" value "@ segrended that it can only be completed by calling = .

If you are sending this kind of

* those Area have names aimed at creating recursive function Litrl, though I'm not what I have.


No comments:

Post a Comment