On Mon, Nov 28, 2016 at 02:59:09PM +0100, Ludovic Court??s wrote:
     >      ???match???, 
     >
     > Have another look: +    (let* ((host (match (string-split source #\:) 
((h _) h)))
     
     Right, but there are other occurrences of ???car??? for ???getaddrinfo???. 
 :-)

But that occurance applies to a real list, rather than a list used as record.
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 where
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.
     

J'

-- 
Avoid eavesdropping.  Send strong encrypted email.
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://sks-keyservers.net or any PGP keyserver for public key.

Attachment: signature.asc
Description: Digital signature

Reply via email to