Quoth Linas Vepstas :
> 2009/4/14 Sebastian Tennant :
>> I needed to replace two consecutive spaces in strings with ' ' so
>
> Most programming languages use regex, and so does guile:
Of course it can be done using regexps, I'm just a little surprised
there isn't already a replace-substring funct
Hello,
I would probably use, e.g., `regexp-substitute/global' as Linas
suggested. Otherwise, you could try using SRFI-13 as well if it's
enough (consecutive spaces are coalesced here):
(string-join (string-tokenize "hello, world.") " ")
=> "hello, world."
Thanks,
Ludo'.
Quoth l...@gnu.org (Ludovic Courtès):
> Otherwise, you could try using SRFI-13 as well if it's enough
> (consecutive spaces are coalesced here):
>
> (string-join (string-tokenize "hello, world.") " ")
> => "hello, world."
I need to only replace two consecutive spaces. Also string-tokenize (in
On Mon 13 Apr 2009 00:55, Julian Graham writes:
> (define canonical-define-syntax (@ (ice-9 syncase) define-syntax))
This won't work as expected. Syncase macros cannot be bound with
`define'. From the R6RS:
5.2. Variables, keywords, and regions
Within the body of a library or top-lev
Hi Paul,
On Mon 13 Apr 2009 22:28, Paul Emsley writes:
> Paul Emsley wrote:
>> Knowing next to nothing about it, I thought I'd try out using guile
>> with apache/mod_lisp for educational purposes.
So I know you got it working, but I use it too. I've documented some
bits here:
http://wingol
Hi Julian,
On Mon 13 Apr 2009 15:55, Julian Graham writes:
> Well, in R6RS, the body of `define-syntax' forms is evaluated in a
> higher "phase" -- meaning that there are additional bindings visible
> while it's being evaluated.
The final paragraph of 7.2 seems to imply that these additional bi
Sebastian Tennant writes:
> I remember reading that work is currently underway to implement wide
> string handling in Guile. Any idea when it might make it into a stable
> release?
Mike Gran is working on it. It won't be released before the next stable
series (2.x), which isn't precisely sched