Tagged Questions

6
votes
3answers
129 views

Recursing in a lambda function

I have the following 2 functions that I wish to combine into one: (defun fib (n) (if (= n 0) 0 (fib-r n 0 1))) (defun fib-r (n a b) (if (= n 1) b (fib-r (- n 1) b (+ a b)))) I would like to ...
1
vote
1answer
66 views

Question about lisp Lambda functions from an example in Land of Lisp

I'm not quite understanding lambda functions. Here is an example function from the book Land of Lisp: (defun edges->dot (edges) (mapc (lambda (node) (mapc (lambda (edge) ...
1
vote
2answers
93 views

My idea of symbolic evaluator performing derivation on dynamic set of variables

This will slightly link to my two previous questions link 1, link 2. I'm working on some symbolic evaluator which will be part of my project for simulation of electrical circuits. As someone had ...