|
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:
No I didn't want to specify the fields at all, just have all of them automatically defined.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*)
analogous to (srfi srfi-9 gnu) set-field and set-fields, am I right? Regards, Leo
[Prev in Thread] | Current Thread | [Next in Thread] |