|
|
||||
|
||||
|
|
|
|||
|
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. |
|
|||
|
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 |
|
|||
|
"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 |
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |