From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id iF+IA1rym1/mQQAA0tVLHw (envelope-from ) for ; Fri, 30 Oct 2020 11:00:42 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id eEHyOlnym19MEgAA1q6Kng (envelope-from ) for ; Fri, 30 Oct 2020 11:00:41 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8B7C59405D3 for ; Fri, 30 Oct 2020 11:00:41 +0000 (UTC) Received: from localhost ([::1]:59772 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kYS9A-0004dO-Hi for larch@yhetil.org; Fri, 30 Oct 2020 07:00:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57280) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kYS8j-0004dD-RY for guix-devel@gnu.org; Fri, 30 Oct 2020 07:00:13 -0400 Received: from mout-p-202.mailbox.org ([2001:67c:2050::465:202]:35624) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1kYS8h-0004yP-FC for guix-devel@gnu.org; Fri, 30 Oct 2020 07:00:13 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4CMzqD3BBRzQlQm; Fri, 30 Oct 2020 12:00:08 +0100 (CET) X-Virus-Scanned: amavisd-new at heinlein-support.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brendan.scot; s=MBO0001; t=1604055606; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NFtv5YOw0YvRoAJpklR1ol8ifXBGWcvbBXXAkPdbcsY=; b=XFttIAolkrg89xuOiUMQNm96pSguQCnjVjWGVpgSuNC2sGQNLzsQkA2dpA10idrv7VE5xj pAMw752ovKH1DFiUg19xBEu46BHcgUcUhmvzB0o1r4kFce9tHjo6VVLPaI14n8/XUhRNqv 5Y3YE1UfozvfleeJfP2Nq0yLAuyiJnQLbbexo0G2pfuiZIcO05386iAvErjFft1jYuNUMy 5lo+tth04GG7KuDWbWvXiorFgwncGEkBzjp6uPPzH9tY5NKfOe9ci1nAUPAtUGI3A2704t Eiql2xkESmkRqIgK/q4l3jo1ekHSXlZ5LfjVrbk187Dqg0Aen0xox07qfwD9YA== Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter04.heinlein-hosting.de (spamfilter04.heinlein-hosting.de [80.241.56.122]) (amavisd-new, port 10030) with ESMTP id c5p73rZLcRme; Fri, 30 Oct 2020 12:00:05 +0100 (CET) Subject: Re: A better way to access records. To: Leo Prikler References: <1f780c067b3dec2f320e056e99b93fbd076b18ae.camel@student.tugraz.at> From: Brendan Tildesley Message-ID: Date: Fri, 30 Oct 2020 21:59:59 +1100 MIME-Version: 1.0 In-Reply-To: <1f780c067b3dec2f320e056e99b93fbd076b18ae.camel@student.tugraz.at> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-MBO-SPAM-Probability: X-Rspamd-Score: -2.45 / 15.00 / 15.00 X-Rspamd-Queue-Id: 7DD9E1718 X-Rspamd-UID: 69abde Received-SPF: pass client-ip=2001:67c:2050::465:202; envelope-from=mail@brendan.scot; helo=mout-p-202.mailbox.org X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=brendan.scot header.s=MBO0001 header.b=XFttIAol; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -1.21 X-TUID: sq/joUAuwM2x 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 >