Hi,
On 10 Sep., 10:33, Laurent PETIT wrote:
> Maybe when Counted becomes a protocol and is then extended to
> java.lang.String ?
>
> (Does this make sense ?)
Hmmm... Then you can't implement count for seqs anymore. Given you
want the Counted protocol to provide a O(1) count function (really
na
2010/9/10 Meikel Brandmeyer :
> Hi,
>
> On 9 Sep., 21:01, Randy Hudson wrote:
>
>> Inexplicably (counted? "abcd") returns false.
>
> Why should it? String does not implement Counted.
Maybe when Counted becomes a protocol and is then extended to java.lang.String ?
(Does this make sense ?)
--
Yo
Hi,
On 9 Sep., 21:01, Randy Hudson wrote:
> Inexplicably (counted? "abcd") returns false.
Why should it? String does not implement Counted.
Sincerely
Meikel
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to cloj
Inexplicably (counted? "abcd") returns false.
On Sep 9, 11:33 am, Sunil S Nandihalli
wrote:
> actually there is a function called
>
> counted?
>
> Sunil.
>
> On Thu, Sep 9, 2010 at 8:59 PM, Nicolas Oury wrote:
> > Thank you very much.
>
> > Never looked closely at count definition.
>
> > I assum
actually there is a function called
counted?
Sunil.
On Thu, Sep 9, 2010 at 8:59 PM, Nicolas Oury wrote:
> Thank you very much.
>
> Never looked closely at count definition.
>
> I assumed it was a forawrd to .count of Counted, which explains my problem.
>
> I kind of remembered the O(1) of Coun
Thank you very much.
Never looked closely at count definition.
I assumed it was a forawrd to .count of Counted, which explains my problem.
I kind of remembered the O(1) of Counted and get mixed up.
Best regards,
Nicolas.
On Thu, Sep 9, 2010 at 3:50 PM, Meikel Brandmeyer wrote:
> Hi,
>
> On 9
Hi,
On 9 Sep., 16:45, Nicolas Oury wrote:
> is it a way to do so?
You can check the Counted marker interface for clojure collections.
But this won't cover Strings etc. More information here:
http://github.com/clojure/clojure/blob/master/src/jvm/clojure/lang/RT.java#L489
Sincerely
Meikel
--
Y