Committing before long pause
Comments in code explaining the myriad issues encountered with Lisp/Neovim set-up
This commit is contained in:
parent
4f47fd99a0
commit
c0fcf47126
1 changed files with 5 additions and 0 deletions
|
@ -4,6 +4,10 @@
|
|||
|
||||
(in-package :all-your-base)
|
||||
|
||||
;- 2025-01-25 Working on all-your-base exercise
|
||||
; - nvlime plugin is no longer generating `\cc` keymap to connect to server
|
||||
; - generally lots of problems loading the files
|
||||
; - the unconv function : I'm handling the division and remainder stuff wrong (easy to work out in online compiler).
|
||||
(defun conv (l base)
|
||||
(if (null l)
|
||||
0
|
||||
|
@ -21,6 +25,7 @@
|
|||
exponent)))
|
||||
(if (eq x 0)
|
||||
(list num)
|
||||
; something is not working here; getting fractional values for r
|
||||
(multiple-value-bind (q r)
|
||||
(truncate (/ num (expt base x)))
|
||||
(append (list q) (unconv r base (- x 1)))))))
|
||||
|
|
Loading…
Add table
Reference in a new issue