Re: regexp-split for Guile

2012-10-12 Thread Mark H Weaver
Daniel Hartwig writes: > On 19 September 2012 03:59, Chris K. Jester-Young wrote: >> (define* (regexp-split pat str #:optional (limit 0)) >> […] >> (reverse (if (zero? limit) >> (drop-while string-null? final) >> final >> > > Please simplify this limit ar

Re: [PATCH] Implement ‘hash’ for structs

2012-10-12 Thread Ludovic Courtès
Mark H Weaver skribis: > l...@gnu.org (Ludovic Courtès) writes: > >> Mark H Weaver skribis: >> >>> I guess this 'if' is to avoid an infinite loop if the struct points back >>> to itself. However, it apparently fails to detect cycles in the general >>> case. >> >> Yes, indeed. >> >> Here’s an up

Re: [PATCH] In string-split, add support for character sets and predicates.

2012-10-12 Thread Mark H Weaver
Daniel Hartwig writes: > Patch with .texi updated also. Applied, thanks! :) Mark