Suppose i run not using the map operation :
core => Suppose that I am using map operation complement :
core = & Gt; (False false false)] (wrong (false wrong)] My question is: is complement and not effective By the way in closure?
(Except that compliment works a little like comp ose partial )
These are the same results that you can get for small changes (like your code In the sample) it becomes very clear if we refer to the supplementary source:
(source supplement) => (Defn supplement "takes FNF and takes the same argument as F, has the same effect, if any, and returns the opposite truth. "{: Added" 1.0 ": static true} [F] (FN ([] (not (F))) ([x] (not fx)) ([xy] (not fxy)) ( [Xy & zs] (no (fxy zs apply))) They are quite different in their meanings - working on values no , And this value ( true or false ) Supplements activates and gives jobs
It may look like an implementation description, but it is very important to express your intentions - complement it is very clear that you are creating a new function, whereas not is mostly used in conditional testing.
No comments:
Post a Comment