guix-patches
[Top][All Lists]
Advanced

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

[bug#58660] [PATCH v2 2/3] etc: teams: Sort and itemize 'scope' field.


From: Mathieu Othacehe
Subject: [bug#58660] [PATCH v2 2/3] etc: teams: Sort and itemize 'scope' field.
Date: Fri, 18 Nov 2022 18:23:40 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)

Hello,

> +               (scope-files
> +                (fold
> +                 (lambda (str fmt)
> +                   (string-append fmt str))
> +                 (format #f "scope:~%")
> +                 (sort
> +                  (map (lambda (scope) (format #f "+ ~a~%" scope)) 
> scope-files)

Why not:

(scope (format #f "scope:~%~{+ ~s ~}~%" scope))

> +                  string<=?)))))

At that point, scope is not always a string:

--8<---------------cut here---------------start------------->8---
ERROR: In procedure string<=?:
In procedure string<=: Wrong type argument in position 1 (expecting string): 
#<regexp 7fd842030980>
--8<---------------cut here---------------end--------------->8---

Thanks,

Mathieu





reply via email to

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