Hello,
Could you show me some trivial programs related to I/O (e.g. read from
file, convert to uppercase, write to another file)?
This page [0] doesn't list a function that can be used to read the whole
file at once. Is there a "read-string" function? What about "read-port"?
Should I import some
On 12 November 2012 21:54, Daniel Llorens wrote:
>
> (define f
> (case-lambda*
> ((a b c #:key x) 3)
> ((a #:key x) 1)))
>
> scheme@(guile-user)> (g 0 #:x 1)
> $1 = 3
Because “0 #:x 1” is a valid match for “a b c”, you should rearrange
the case-lambda claus
(define f
(case-lambda*
((a b c #:key x) 3)
((a #:key x) 1)))
scheme@(guile-user)> (g 0 #:x 1)
$1 = 3
The manual says
> Also, for completeness. Guile defines case-lambda* as well, which is like
> case-lambda, except with lambda* clauses. A case-lambda* c
Bonjour!
2012/11/10 Ludovic Courtès :
> Hi,
>> So I thought that maybe there could be another keyword controlling whether
>> the keywords are left in the rest list or not, so the above code could
>> look like this:
>>
>> (define* (random-array #:key (range 1.0) (type #t) (mean 0) #:rest
>> dims #: