Go Back   Rhinocerus > Newsgroup > Newsgroup comp.lang.lisp

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 09-14-2006, 07:41 PM
bull
Guest
 
Posts: n/a
Default Need ANswer

Can you please send a iterative approach of checking the atoms.

Thanks in advance

Reply With Quote
Alt Today
Advertising
 
and become member of Rhinocerus
Standard Sponsored Links

  #2 (permalink)  
Old 09-14-2006, 08:07 PM
Markus Grueneis
Guest
 
Posts: n/a
Default Re: Need ANswer

bull schrieb:
> Can you please send a iterative approach of checking the atoms.
>
> Thanks in advance
>


for_each(container.begin(), container.end(), is_atom);

Now you only need to write a reader makro which parses this text
correctly, pipes it to a C++ compiler, parse the output object file, and
load and execute it from within your CL implementation. It's really
just that easy!

Best regards,
-- Markus

P.S.: of course this C++ program is not complete, but the implementation
of the rest is straightforward.
Reply With Quote
  #3 (permalink)  
Old 09-14-2006, 08:53 PM
Larry Clapp
Guest
 
Posts: n/a
Default Re: Need ANswer

On 2006-09-14, bull <Sharath.Indarapu@gmail.com> wrote:
> Can you please send a iterative approach of checking the atoms.
>
> Thanks in advance


Wow, is it September already?

http://www.catb.org/jargon/html/S/Se...ver-ended.html

Reply With Quote
  #4 (permalink)  
Old 09-15-2006, 01:24 AM
jmckitrick
Guest
 
Posts: n/a
Default Re: Need ANswer


bull wrote:
> Can you please send a iterative approach of checking the atoms.
>
> Thanks in advance


Please email me for the address to send the check to.

Thanks in advance.

Reply With Quote
  #5 (permalink)  
Old 09-15-2006, 02:32 AM
Benjamin Tovar
Guest
 
Posts: n/a
Default Re: Need ANswer

"bull" <Sharath.Indarapu@gmail.com> writes:

> Can you please send a iterative approach of checking the atoms.
>
> Thanks in advance


I am not an expert, but I believe the following is executed in an
"iterative approach" after compiled:

(define (check-atoms lst)
(define (aux rest acc)
(cond
((null? rest) (reverse acc))
((list? (car rest))
(aux (cdr rest) acc))
(else
(aux (cdr rest) (cons (car rest) acc)))))
(aux lst '()))



--
"Master your instrument, master the music, and then forget all that
bullshit and just play." -- Charlie Parker
Reply With Quote
  #6 (permalink)  
Old 09-15-2006, 07:21 AM
Espen Vestre
Guest
 
Posts: n/a
Default Re: Need ANswer

"bull" <Sharath.Indarapu@gmail.com> writes:

> Can you please send a iterative approach of checking the atoms.


Which atoms, and how should they be checked?
--
(espen)
Reply With Quote
  #7 (permalink)  
Old 09-15-2006, 02:30 PM
dustmop@gmail.com
Guest
 
Posts: n/a
Default Re: Need ANswer

bull wrote:
> Can you please send a iterative approach of checking the atoms.
>
> Thanks in advance


If your molecules are sticking together then the atoms should be fine.

Reply With Quote
  #8 (permalink)  
Old 09-17-2006, 09:31 PM
rc@homeunix.net
Guest
 
Posts: n/a
Default Re: Need ANswer

"bull" <Sharath.Indarapu@gmail.com> writes:

> Can you please send a iterative approach of checking the atoms.
>
> Thanks in advance


(let ((check '(1 2 3 nil (1 2 3))))
(loop for atom in check
when (atom atom) collect atom))
Reply With Quote
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: OT: Google Labs Aptitude Test #17 (answer - spoiler!) Ed Heaton Newsgroup comp.soft-sys.sas 1 05-16-2006 03:15 PM
Re: OT: Google Labs Aptitude Test #17 (answer - spoiler!) Venky Chakravarthy Newsgroup comp.soft-sys.sas 1 05-16-2006 12:49 AM
Re: OT: Google Labs Aptitude Test #17 (answer - spoiler!) toby dunn Newsgroup comp.soft-sys.sas 0 05-15-2006 07:35 PM
Re: OT: Google Labs Aptitude Test #17 (answer - spoiler!) Nordlund, Dan Newsgroup comp.soft-sys.sas 0 05-15-2006 06:55 PM
Question and answer community for job & career aryan Newsgroup comp.soft-sys.sas 0 04-28-2006 11:59 AM



All times are GMT. The time now is 05:12 PM.


Copyright ©2009

LinkBacks Enabled by vBSEO 3.3.0 RC2 © 2009, Crawlability, Inc.