Oh... no I'm trying to convert a binary number to decimal
But using really simple methods...
No bit vectors or anything just a list of 1's and 0's
We are supposed to use first instead of car and rest instead of cdr and stuff
like that...
I've never used Lisp before either
***********************************
www.holly-cam.com
········@aol.comnospam (holly-cam.com) writes:
> No bit vectors or anything just a list of 1's and 0's
It looks to me like you're slightly confused as to what a list of
digits looks like. A list of 1's and 0's looks like this:
(0 1 1 0 1 0)
while a list containing the single integer number
eleven-thousand-and-ten could look like this:
(011010)
--
Frode Vatvedt Fjeld
oh you're right...
I was typing them without spaces ;-p
I've never tried LISP before... eek
Thanks!
***********************************
www.holly-cam.com