Hi,
With LISP (as with other
functional programming laguages) functions are treated as
first-class citizens. That means functions can be used the same way as other data type, e.g. stored in variables, passed as arguments to other functions, returned by functions.
In you case, you can directly pass the < or > operator to the subr_A function:
or store it in a variable before:
But, to be consistent with native higher order functions, you should quote the function passed as argument.
(defun subr_A
(SignOf
<and
> ang
) .... then do stuff
)
)
Then you can call it with the quoted operator
or store it in a variable before:
NOTA: you should not use 'angle' as variable name. It is a protected symbol (native function).