Re: [Chicken-users] length performance

2006-01-05 Thread Zbigniew
Additionally, it would become infeasible to splice a pair into or out of the list [an O(1) operation], given only a pointer into the middle of the list, because you cannot update the counts of earlier list elements. This would be possible with a doubly-linked list---but insert and remove would

Re: [Chicken-users] length performance

2006-01-05 Thread Mario Domenech Goulart
Hello, On Thu, 5 Jan 2006 03:07:16 -0600 Zbigniew [EMAIL PROTECTED] wrote: Additionally, it would become infeasible to splice a pair into or out of the list [an O(1) operation], given only a pointer into the middle of the list, because you cannot update the counts of earlier list elements.

Re: [Chicken-users] length performance

2006-01-05 Thread Kon Lovett
Chicken supports the vector datatype. Checkout the srfi-43 egg. Best Wishes, Kon On Jan 5, 2006, at 8:40 AM, Mario Domenech Goulart wrote: Hello, On Thu, 5 Jan 2006 03:07:16 -0600 Zbigniew [EMAIL PROTECTED] wrote: Additionally, it would become infeasible to splice a pair into or out of

[Chicken-users] Getting a macro to see a runtime form?

2006-01-05 Thread Reed Sheridan
I'm trying to write a macro that translates a list into a procedure. Here's a very simplified version of my code: (define spec '(foo)) (define (process-spec spec) (if (pair? spec) '(lambda x x) (error oops))) (define-macro (spec-proc a-spec) (process-spec a-spec)) #

Re: [Chicken-users] Getting a macro to see a runtime form?

2006-01-05 Thread felix winkelmann
On 1/5/06, Reed Sheridan [EMAIL PROTECTED] wrote: I'm trying to write a macro that translates a list into a procedure. Here's a very simplified version of my code: (define spec '(foo)) (define (process-spec spec) (if (pair? spec) '(lambda x x) (error oops))) (define-macro