Search found 9 matches

by nikond3s
Mon Oct 10, 2011 2:10 am
Forum: Common Lisp
Topic: Some element-deleting list functions
Replies: 13
Views: 21336

[OT] Lisp-"Environment"

For Windows I arrived at http://lispcabinet.sourceforge.net/. It's some kind of "fire-and-forget"-installer. It comes with Emacs and during the install-routine you can choose to install additional Lisps, no other configuration required. I run it under Windows 7 64bit.
by nikond3s
Sun Oct 09, 2011 12:36 pm
Forum: Common Lisp
Topic: apply, append and collect trouble
Replies: 1
Views: 3569

Re: apply, append and collect trouble

Ah I got it. The desciption about apply was a little unclear, I looked it up elsewhere. Apply uses the "contents" of the list as input for the provided function, which in my case is equivalent to calling (append '((3 . 28) (28 . 3)) '((10 . 30) (30 . 10))).
by nikond3s
Sun Oct 09, 2011 12:04 pm
Forum: Common Lisp
Topic: apply, append and collect trouble
Replies: 1
Views: 3569

apply, append and collect trouble

Hi, I'm sitting here starting at the book "Land of Lisp" while trying to figure out some "strange" behaviour. There is a function calle make-edge-list, there is nothing wrong with it the function works but there is a little thing I don't understand. (defun make-edge-list() (apply...
by nikond3s
Sun Oct 09, 2011 9:26 am
Forum: Common Lisp
Topic: Some element-deleting list functions
Replies: 13
Views: 21336

Re: Some element-deleting list functions

If takeoutSecond has to remove the second match, why wouldn't you do something like the following?

Code: Select all

(defun takeoutSecond(X L)
  (takeOutFirst X (takeOutFirst X L)))
EDIT: Ah! You just want do delete the second while leaving the first one untouched. Well than forget my writings, I was wrong. ;)
by nikond3s
Wed Oct 05, 2011 10:47 pm
Forum: The Lounge
Topic: What dialect of Lisp is suitable for a beginner?
Replies: 4
Views: 10813

Re: What dialect of Lisp is suitable for a beginner?

IMHO there are not many good IDE choices for Lisp out there. If you have not found it yet you should visit www.cliki.net. This wiki is my current "knowledge base" for Lisp, it containts many useful links and information about Lisp.
by nikond3s
Tue Oct 04, 2011 5:54 am
Forum: The Lounge
Topic: What dialect of Lisp is suitable for a beginner?
Replies: 4
Views: 10813

Re: What dialect of Lisp is suitable for a beginner?

Hi I'm also a beginner. I started with Lisp a few days ago. For my experiments I choose Common Lisp and CLISP. Because I have a strong Java Background I use Eclipse as my IDE of choice with a simple plugin called "dandelion" (http://sourceforge.net/projects/dandelion-ecl/). You just need t...
by nikond3s
Mon Oct 03, 2011 12:53 pm
Forum: Common Lisp
Topic: [Beginner] cdr and list of lists trouble
Replies: 4
Views: 6281

Re: [Beginner] cdr and list of lists trouble

I think I got it now. I saw "too much" which wasn't really there. In my example CAR returns the list it is pointing to, which is the first element of the "parent"-list. CDR returns a list containing the rest where the first element happens to be a list. Thats it nothing special a...
by nikond3s
Mon Oct 03, 2011 11:31 am
Forum: Common Lisp
Topic: [Beginner] cdr and list of lists trouble
Replies: 4
Views: 6281

Re: [Beginner] cdr and list of lists trouble

Why is it a "list of lists" and not just a single list like the result after applying car? Why would you expect it to be? CDR when applied to a list gives you a list without the first element of the list. Why I would expect it to be, is because if I apply "tail" onto a list I'd ...
by nikond3s
Mon Oct 03, 2011 10:43 am
Forum: Common Lisp
Topic: [Beginner] cdr and list of lists trouble
Replies: 4
Views: 6281

[Beginner] cdr and list of lists trouble

Hi, this might be a silly question but I miss something and do not know what it is. I'm using the CLISP interpreter for my "experiments". Given the list of lists ((a b c) (d e f)) and after applying car/cdr the output looks like the following. > (car '((a b c) (d e f))) > (A B C) > (cdr '(...