let-over-lambda Questions

3

Solved

When I compile the following code, SBCL complains that g!-unit-value and g!-unit are undefined. I'm not sure how to debug this. As far as I can tell, flatten is failing. When flatten reaches the u...
Asdic asked 15/11, 2015 at 19:56

2

Solved

In Common Lisp, if I want two functions to share state, I would perform a let over lambda as follows: (let ((state 1)) (defun inc-state () (incf state)) (defun print-state () (format t "~a~%" ...
Deter asked 21/8, 2016 at 16:54
1

© 2022 - 2024 — McMap. All rights reserved.