Search found 10 matches

by FKeeL
Sat Jan 29, 2011 11:59 am
Forum: Common Lisp
Topic: Newbie questions - and yes, its homework :-(
Replies: 21
Views: 20073

Re: Newbie questions - and yes, its homework :-(

*duh* of course. (where I learnt it? dont remember, but google is my friend. The reason I come here is that someone stops me when I begin doing stupid things like this. thanks.)
p
(who now needs to do some lisp-unrelated stuff for a while)
by FKeeL
Sat Jan 29, 2011 11:32 am
Forum: Common Lisp
Topic: Newbie questions - and yes, its homework :-(
Replies: 21
Views: 20073

Re: Newbie questions - and yes, its homework :-(

Hi Ramarren. When I seem dense, its not because of your english (which appears close to flawless to me anyway) its rather that your understanding of lisp is so much higher than mine that you take concepts for granted, which I can hardly even wrap my head around. Usually when I read your post the fir...
by FKeeL
Sat Jan 29, 2011 12:02 am
Forum: Common Lisp
Topic: Newbie questions - and yes, its homework :-(
Replies: 21
Views: 20073

Re: Newbie questions - and yes, its homework :-(

nice. I think the code you just posted is pretty much as good as it gets. Its recursive, 100% functional has (as far as I can tell) nothing which isnt necesary ... and I am actually beginning to understand this. though I probably should just get some sleep, right now its like behind a gray mist, I h...
by FKeeL
Fri Jan 28, 2011 11:08 pm
Forum: Common Lisp
Topic: Newbie questions - and yes, its homework :-(
Replies: 21
Views: 20073

Re: Newbie questions - and yes, its homework :-(

Also: whenever you have (append (list x) other-list) You can instead do (cons x other-list) ;) I would assume this is more efficient, but that is not at all my area of expertise. ...hm my compiler doesnt work like that. CG-USER(13): (append '(1 2 3) '(4 5 6)) (1 2 3 4 5 6) CG-USER(14): (cons '(1 2 ...
by FKeeL
Fri Jan 28, 2011 11:02 pm
Forum: Common Lisp
Topic: Newbie questions - and yes, its homework :-(
Replies: 21
Views: 20073

Re: Newbie questions - and yes, its homework :-(

@jstoddard: glad that this thread is helping other people as well as me :-). we seem to be pretty much exactly in the same boat in regards to lisp... What intreagues me about your solution is that you somehow manage to recurse with only one list - I wish I could figure out how to do that. On the oth...
by FKeeL
Fri Jan 28, 2011 7:15 pm
Forum: Common Lisp
Topic: Newbie questions - and yes, its homework :-(
Replies: 21
Views: 20073

Re: Newbie questions - and yes, its homework :-(

Edit: (nevermind, I figured it out)
is there a function which tells me whether an element is a list or not? i.e. a function which tells me (car '((a b c) b c d a a b c)) is a list? Edit: ---> its listp
by FKeeL
Fri Jan 28, 2011 6:47 pm
Forum: Common Lisp
Topic: Newbie questions - and yes, its homework :-(
Replies: 21
Views: 20073

Re: Newbie questions - and yes, its homework :-(

Thanks Ramarran and Warren for your help. So this is what I did to figure this out (Just in case anyone is as dumbfounded as me and wants to follow what I did) (maybe it makes sense to (once I've worked myself through all my problems) turn it into a big recusrion tutorial?) [/color] First I tried to...
by FKeeL
Thu Jan 27, 2011 8:04 pm
Forum: Common Lisp
Topic: Newbie questions - and yes, its homework :-(
Replies: 21
Views: 20073

Re: Newbie questions - and yes, its homework :-(

Thanks for the help so far guys, I feel like I am - slowly - understanding lisp. Basically "cond" is used similar to guards (|) in Haskell then. So far so good. @ james I am trying to get your suggestion to work and again I am failing. Its not quite the solution required I think (because i...
by FKeeL
Thu Jan 27, 2011 2:01 pm
Forum: The Lounge
Topic: Totally Newfang!
Replies: 8
Views: 17977

Re: Totally Newfang!

Hi Möwe I myself am pretty much a noob to all of this as well, but here is my advice to you :-D a) Dont get linux. Linux is not a operating system such as Windows or Mac which will simply work. Linux requires you to know quite a bit about UNIX systems if you want to do anything more complex than ru...
by FKeeL
Thu Jan 27, 2011 1:45 pm
Forum: Common Lisp
Topic: Newbie questions - and yes, its homework :-(
Replies: 21
Views: 20073

Newbie questions - and yes, its homework :-(

Hi Everyone. I need some very basic help. I am taking a course on lisp, but was up until now unable to attend (just moved to a new city (and continent. ha) and family and health issues :-S...) Now I just figured out that I have an assignment due this monday. Now the last two days I have done my best...