From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Darrington Subject: Re: [PATCH] gnu: Allow nfs file systems to be automatically mounted. Date: Mon, 28 Nov 2016 15:07:54 +0100 Message-ID: <20161128140754.GA7013@jocasta.intra> References: <8760nc6et6.fsf@gnu.org> <1480152990-7080-1-git-send-email-jmd@gnu.org> <87fumenl44.fsf@gnu.org> <20161126193358.GA10000@jocasta.intra> <87polfbt8y.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="fUYQa+Pmc3FrFX/N" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48888) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cBMbH-0001pe-10 for guix-devel@gnu.org; Mon, 28 Nov 2016 09:08:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cBMbD-0001YY-2d for guix-devel@gnu.org; Mon, 28 Nov 2016 09:08:06 -0500 Content-Disposition: inline In-Reply-To: <87polfbt8y.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ludovic Court??s Cc: guix-devel@gnu.org, John Darrington --fUYQa+Pmc3FrFX/N Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 28, 2016 at 02:59:09PM +0100, Ludovic Court??s wrote: > ???match???,=20 > > Have another look: + (let* ((host (match (string-split source #\:= ) ((h _) h))) =20 Right, but there are other occurrences of ???car??? for ???getaddrinfo= ???. :-) But that occurance applies to a real list, rather than a list used as recor= d. In other words, I really do just want to get the first item of that list. As I understand it, match is supposed to be used for heterogenous lists whe= re each member has its own semantics. That is not the case here. Obviously, I could write (match ... (x . _) x) but I don't see what benefit= that brings. =20 J' --=20 Avoid eavesdropping. Send strong encrypted email. PGP Public key ID: 1024D/2DE827B3=20 fingerprint =3D 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3 See http://sks-keyservers.net or any PGP keyserver for public key. --fUYQa+Pmc3FrFX/N Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlg8OjoACgkQimdxnC3oJ7P9RgCdHxw9hwaiUHhITVLykHAkUwt9 qQIAnRUyau6dWq2N764FxxeGqGHvQFzu =NPY1 -----END PGP SIGNATURE----- --fUYQa+Pmc3FrFX/N--