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
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.
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
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))
#
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