Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Scheme programming question
Name: mrbsktbll10234 Date: March 25, 2008 at 06:23:06 Pacific OS: XP CPU/Ram: 1G Product: hp
Comment:
I have a list of integers and want to change them into a list of of lists containing the integers. i.e.: (make-sublists '(1 2 3 4)) -> ((1) (2) (3) (4))
Name: klint Date: March 25, 2008 at 06:50:58 Pacific
Reply:
I don't know scheme but as this sounds like a homework question it would help you if you think it through. Here's some ideas.
You want (make-sublists '()) to return ()
and for any one-element list, you want (make-sublists '(1)) to return ((1)).
For any list of more than one element, denoted by head and tail, you want it to return ((head) ...) where the "..." is for you to think about. Use recursion.
Summary: Hi. I'm in a very basic C Programming class. Its defanatly for beginners so this probably will be an easy question. I have my program set as follows....The user enters 10 names into a character array ...
Summary: I am a computer hardware person and know little or nothing about programing. I have a laymans question about game programs. How is it that games like, Quake3 or UT, both of which were written around 1...
Summary: How can I see which IRQ number that a device has, and how can I change it? (I am in protected mode, and this is a programming question ;P) ...