all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Leo Prikler <leo.prikler@student.tugraz.at>
To: mail@brendan.scot
Cc: guix-devel@gnu.org
Subject: Re: A better way to access records.
Date: Fri, 30 Oct 2020 11:49:48 +0100	[thread overview]
Message-ID: <1f780c067b3dec2f320e056e99b93fbd076b18ae.camel@student.tugraz.at> (raw)
In-Reply-To: 487cea17-061a-2cc9-6b3e-7b688114d158@brendan.scot

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



             reply	other threads:[~2020-10-30 10:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-30 10:49 Leo Prikler [this message]
2020-10-30 10:59 ` A better way to access records Brendan Tildesley
2020-10-30 19:47   ` Danny Milosavljevic
  -- strict thread matches above, loose matches on Subject: below --
2020-10-30 10:28 Brendan Tildesley
2020-10-30 11:04 ` Bengt Richter
2020-10-30 18:17 ` Taylan Kammer
2020-10-31 22:01 ` Ludovic Courtès
2020-11-13 11:24   ` Brendan Tildesley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1f780c067b3dec2f320e056e99b93fbd076b18ae.camel@student.tugraz.at \
    --to=leo.prikler@student.tugraz.at \
    --cc=guix-devel@gnu.org \
    --cc=mail@brendan.scot \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.