[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Outreachy - Guix Data Service: questions about improving the data fo
From: |
Christopher Baines |
Subject: |
Re: Outreachy - Guix Data Service: questions about improving the data for derivation comparisons. |
Date: |
Tue, 27 Apr 2021 19:42:13 +0100 |
User-agent: |
mu4e 1.4.15; emacs 27.1 |
Luciana Lima Brito <lubrito@posteo.net> writes:
> On Tue, 27 Apr 2021 13:10:01 +0000
> Luciana Lima Brito <lubrito@posteo.net> wrote:
>
>> > Maybe add another procedure that combines group-to-alist but
>> > generates an alist with vectors as the values?
>> > (group-to-alist/vector maybe).
>
> I did it! :)
> It was so much simpler. I created a function
> group-to-alist/vector, based on the previous function, to which I added
> the map I was already using on the controller.scm for data-groups.
>
> (define (group-to-alist/vector process lst)
> (map
> (match-lambda
> ((label args ...)
> `(,label . ,(list->vector args))))
> (group-to-alist process lst)))
>
> The only change needed on the html.scm is to use vector->list in the
> items, like this
>
> (map
> (lambda (alist)
> ...
> (or (vector->list items) '()))
>
> Please, tell me what you think is the best, this way or the other that
> I sent earlier with the patch?
Great :)
I'd go with this approach, applying the comments I made about the
match-lambda bit above in the email I sent a few minutes ago.
signature.asc
Description: PGP signature
- Re: Outreachy - Guix Data Service: questions about improving the data for derivation comparisons., (continued)
- Re: Outreachy - Guix Data Service: questions about improving the data for derivation comparisons., Christopher Baines, 2021/04/22
- Re: Outreachy - Guix Data Service: questions about improving the data for derivation comparisons., Luciana Lima Brito, 2021/04/23
- Re: Outreachy - Guix Data Service: questions about improving the data for derivation comparisons., Christopher Baines, 2021/04/23
- Re: Outreachy - Guix Data Service: questions about improving the data for derivation comparisons., Luciana Lima Brito, 2021/04/25
- Re: Outreachy - Guix Data Service: questions about improving the data for derivation comparisons., Christopher Baines, 2021/04/26
- Re: Outreachy - Guix Data Service: questions about improving the data for derivation comparisons., Luciana Lima Brito, 2021/04/26
- Re: Outreachy - Guix Data Service: questions about improving the data for derivation comparisons., Christopher Baines, 2021/04/26
- Re: Outreachy - Guix Data Service: questions about improving the data for derivation comparisons., Luciana Lima Brito, 2021/04/27
- Re: Outreachy - Guix Data Service: questions about improving the data for derivation comparisons., Christopher Baines, 2021/04/27
- Re: Outreachy - Guix Data Service: questions about improving the data for derivation comparisons., Luciana Lima Brito, 2021/04/27
- Re: Outreachy - Guix Data Service: questions about improving the data for derivation comparisons.,
Christopher Baines <=
- Re: Outreachy - Guix Data Service: questions about improving the data for derivation comparisons., Luciana Lima Brito, 2021/04/27
- Re: Outreachy - Guix Data Service: questions about improving the data for derivation comparisons., Christopher Baines, 2021/04/27
- Re: Outreachy - Guix Data Service: questions about improving the data for derivation comparisons., Luciana Lima Brito, 2021/04/27
- Re: Outreachy - Guix Data Service: questions about improving the data for derivation comparisons., Christopher Baines, 2021/04/28