Subject: RE: [clisp-list] List conversion and string eval

From: "Justice, Randy -CONT" <[email-masked]>
Date: Mon, 26 Feb 2001 10:36:34 -0600

Thanks...

I will check out the web page.

Thanks again..

Randy
-----Original Message-----
From: Sam Steingold [mailto:[email-masked]]
Sent: Monday, February 26, 2001 10:09 AM
To: Justice, Randy -CONT
Cc: [email-masked]
Subject: Re: [clisp-list] List conversion and string eval

> * In message
<[email-masked]>
> * On the subject of "[clisp-list] List conversion and string eval"
> * Sent on Mon, 26 Feb 2001 08:05:25 -0600
> * Honorable "Justice, Randy -CONT" <[email-masked]> writes:
>
> I have a list of 1 and 0s. An example is (1 0 1).  This is a binary
> number not a base 10 number.

please see `poly' in clocc/src/cllib/math.lisp
(<http://www.podval.org/~sds/data/cllib.html>)

 (reduce (lambda (r d) (+ (* r 2) d)) '(1 0 1) :initial-value 0)
        ==> 5

--
Sam Steingold (http://www.podval.org/~sds)
Support Israel's right to defend herself!
<http://www.i-charity.com/go/israel>
Read what the Arab leaders say to their people on <http://www.memri.org/>
((lambda (x) (list x (list 'quote x))) '(lambda (x) (list x (list 'quote
x))))