Edgar,
Thanx for the EXCELLENT detailed explanation!
Charlie
Search found 11 matches
- Mon Jan 19, 2015 10:47 am
- Forum: Common Lisp
- Topic: Passing arguments to find-if
- Replies: 4
- Views: 10807
- Sun Jan 18, 2015 10:32 pm
- Forum: Common Lisp
- Topic: Passing arguments to find-if
- Replies: 4
- Views: 10807
Re: Passing arguments to find-if
Kohath, Thanx - that was it. lisp1 vs. lisp2??? I'm definitely missing something! I'm learning Lisp from Touretzky's book, "Common Lisp" which was re-published by Dover in 2013. It was originally published in 1990 which I guess is where the lisp1 comes in. I chose Common Lisp over Scheme s...
- Sun Jan 18, 2015 4:04 pm
- Forum: Common Lisp
- Topic: Passing arguments to find-if
- Replies: 4
- Views: 10807
Passing arguments to find-if
I don't understand the following compile error using CCL on Mac OSX: (setf tbl '((foo fee) (flubber mcgee))) (defun look-up (key field-func table) (find-if #'(lambda (x) (equal (field-func x) key)) table)) (look-up 'flubber #'first tbl) I get the following error: ? (load "~/Code/Lisp/my-lib.lis...
- Tue Dec 23, 2014 12:22 am
- Forum: Common Lisp
- Topic: Local functions in common Lisp?
- Replies: 2
- Views: 7271
Re: Local functions in common Lisp?
Nuntilus, Thanx for the suggie and the doc pointer. This version works, and the inner function, fee, is invisible from the top REPL level. (defun my-reverse2 (ol) (labels ((fee (x y) (if (equal x nil) y (fee (rest x) (cons (first x) y))))) (fee ol nil))) A couple of observations: 1) I was missing a ...
- Mon Dec 22, 2014 7:22 pm
- Forum: Common Lisp
- Topic: Local functions in common Lisp?
- Replies: 2
- Views: 7271
Local functions in common Lisp?
I want to hide as a local a helper function within its parent function. (defun fubar (x) (defun feebar (y) ...) ...) doesn't work because feebar becomes a global (at least it's global in the REPL which is my sandbox). Next I tried this: ;; my-reverse (defun my-reverse (ol) (let (foo #'(lambda (x y) ...
- Wed Dec 03, 2014 12:07 pm
- Forum: Other Tools
- Topic: Hemlock editor
- Replies: 4
- Views: 35213
Re: Hemlock editor - modify mode line
I'm finding the Hemlock manuals largely inscrutable. Is there an easy way to display the current line and column numbers of the cursor location? Most editors do this by default.
Thanx - Charlie
Thanx - Charlie
- Mon Dec 01, 2014 7:20 pm
- Forum: Other Tools
- Topic: Hemlock editor
- Replies: 4
- Views: 35213
- Sun Nov 30, 2014 11:41 pm
- Forum: Other Tools
- Topic: Hemlock editor
- Replies: 4
- Views: 35213
Hemlock editor
I'm running Clozure CCL downloaded and installed from the Mac app store (on a Mac - obviously:) It has the Hemlock editor built in, and this fits my needs. For various reasons I do NOT consider any of the Emacs flavors an option for me. I want to add some my own functions to make some minor changes....
- Tue Nov 11, 2014 12:28 pm
- Forum: Common Lisp
- Topic: reinitialize a ccl repl session
- Replies: 1
- Views: 6203
reinitialize a ccl repl session
Is there a command to reinitialize a current repl session without doing an exit and restart?
Thanx - Charlie
Thanx - Charlie
- Tue Nov 11, 2014 11:07 am
- Forum: Common Lisp
- Topic: Newbie problem - defun
- Replies: 2
- Views: 7225
Re: Newbie problem - defun
Nuntius,
That was it.
Thanx - Charlie
That was it.
Thanx - Charlie