guix-devel
[Top][All Lists]
Advanced

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

Re: A better way to access records.


From: Brendan Tildesley
Subject: Re: A better way to access records.
Date: Fri, 30 Oct 2020 21:59:59 +1100

On 30/10/20 8:49 pm, Leo Prikler wrote:
Well, the "functional" way of accessing them all in one go would be to
   (map (cute <> foo) (list package-name package-version package-...))
But I assume you want syntax like

(let-field record field exp*)
(let-fields record (field1 field2...) exp*)
No I didn't want to specify the fields at all, just have all of them automatically defined.
analogous to (srfi srfi-9 gnu) set-field and set-fields, am I right?

Regards, Leo





reply via email to

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