I call a function, which outputs a list, I want to use afterwards. I try to bind the function's output to a variable, but instead of the list it gets assigned NIL
.
My call and output (observe the newline in the output):
(nqthm-eval `(myghs 1 NIL ,g1)) ==> '(T (B . E) (D . D))
When I try to bind this output to a variable v
it gets assigned NIL
:
(setq v (nqthm-eval `(myghs 1 NIL ,g1))) ==> '(T (B . E) (D . D))
NIL
And an equality check afterwards indeed gives:
(equal v NIL) ==> T
It seems to me, that the function call to nqthm-eval
is outputting the list and returning NIL
, although I don't understand LISP enough for this yet.
My question: Is there a way to get the list part of the output/return of my function like (car (nqthm-eval ...))
or (get_output (nqthm-eval ...))
from the 'outside'?