help-guix
[Top][All Lists]
Advanced

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

Re: Error with guile function format


From: JOULAUD François
Subject: Re: Error with guile function format
Date: Fri, 12 Mar 2021 17:27:04 +0000

Hello,

On Fri, Mar 12, 2021 at 05:53:27PM +0100, edk@beaver-labs.com wrote:
> Yet the build fail with the following error message:
> 
> In ice-9/format.scm:
>      43:8  0 (format "quake3-latest-pk3s/baseq3/pak~a.pk3" 1)
> 
> ice-9/format.scm:43:8: In procedure format:
> format: expected a string for format string 1

> The first argument to format is a string, so I don't understand the

First argument to format should be a port[1]
or #f to return the output as a string.
In your case something like:

--8<---------------cut here---------------start------------->8---
   (format #f "mystring ~a" 1)
--8<---------------cut here---------------end--------------->8---

so your snippet should be more like:

--8<---------------cut here---------------start------------->8---
                    (map (cut format #f "quake3-latest-pk3s/baseq3/pak~a.pk3" 
<>)
                         (iota 8 1))
--8<---------------cut here---------------end--------------->8---


[1]: 
https://www.gnu.org/software/guile/manual/html_node/Formatted-Output.html#index-format-1


reply via email to

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