guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Hash table read syntax in guile 2.0


From: Hengqing Hu
Subject: Re: Hash table read syntax in guile 2.0
Date: Mon, 18 Feb 2013 11:28:09 +0800

Here it is:

https://github.com/hudayou/fib

Welcome your suggestions!

在 2013-2-18,11:24,Daniel Hartwig <address@hidden> 写道:

> On 18 February 2013 11:14, Hengqing Hu <address@hidden> wrote:
>> Though I didn't look into the implementation.
>> 
>> I suppose length is a constant time operation here,
>> if you use fold instead to get the same thing.
>> It would be linear time.
> 
> This is not guaranteed.
> 
>> 
>> Knowing something is empty or not rises after I put something inside
>> and then take something out.
>> Then I dont't know whether there are still something left, so I need to 
>> examine it.
>> Or if something can tell me.
> 
> Although the point of your algorithm is vague, I believe you will find
> a better one using hash-fold that does not involve checking for
> emptiness.
> 
> Why do you need to know if some elements are left, and what happens if
> there are?  Do you have some code I could look at?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]