Search found 6 matches

by drosales
Sun Oct 09, 2011 10:11 am
Forum: Common Lisp
Topic: Some element-deleting list functions
Replies: 13
Views: 21931

Re: Some element-deleting list functions

run-time: happens when you run the program, after it has been compiled.
compile-time: during compiling :) the program is not compiled because an error occurred while attempting to do it
by drosales
Sun Oct 09, 2011 10:07 am
Forum: Common Lisp
Topic: Some element-deleting list functions
Replies: 13
Views: 21931

Re: Some element-deleting list functions

Ok, I'm gonna try the (possible) easy solution: compiler's problem.
What compilers/environments/whatever_you_call_it do you most recommend?
My system is Windows 7 with language selection turned to English, yet it is originally set in Mandarin Chinese.
by drosales
Sun Oct 09, 2011 8:33 am
Forum: Common Lisp
Topic: Some element-deleting list functions
Replies: 13
Views: 21931

Re: Some element-deleting list functions

At first I also thought I had to modify the list. Then I saw there was no such requirement, just to return the resulting list after the operation is applied. I tried to modify the list received as parameter before,too, with setf, but I failed repeatedly. I'll try to look in to what you've written to...
by drosales
Sun Oct 09, 2011 5:29 am
Forum: Common Lisp
Topic: Some element-deleting list functions
Replies: 13
Views: 21931

Re: Some element-deleting list functions

Thank you very much for your help, Mr. Smith. I changed the "append" to "cons" and it just worked...
by drosales
Sun Oct 09, 2011 1:44 am
Forum: Common Lisp
Topic: Some element-deleting list functions
Replies: 13
Views: 21931

Re: Some element-deleting list functions

There is a remove function, correct, but as far as I understand REMOVE will remove all occurrences of the object with the value you described, right? I need to remove only THE FIRST occurrence of X. I stated that X may be a list(actually i checked again and it is a cons structure.. for sure), and so...
by drosales
Sat Oct 08, 2011 10:26 am
Forum: Common Lisp
Topic: Some element-deleting list functions
Replies: 13
Views: 21931

Some element-deleting list functions

I am trying to write a function that takes two inputs X and L, the second one of which is a list, the first one may or may not be a list. The function will then search L and take out THE FIRST APPEARANCE of X in L, and will return the rest of L untouched. I wrote what I thought (after a series of re...