🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.scheme.c
Article #147

Re: variable argument list question

#147
From: "Mark Friedman"
Date: Wed, 20 Feb 1991 18:51
16 lines
883 bytes
>> In standard scheme the following will work for the simplest case:
>> 
>> ((lambda args (car args)) 1 2 3)  ==> 1
>> 
>> ((lambda ( . args) (car args)) 1 2 3)  ==> 1
>> 
>> The following also works in MIT Scheme:
>> 
>> ((lambda (#!rest args) (car args)) 1 2 3)  ==> 1

Oops, sorry. "((lambda ( . args) (car args)) 1 2 3)" isn't legal.

Never mind.

-Mark
Technical Details
Message-ID: <9102201926.AA07693@bloom-beacon.MIT.EDU>
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!bloom-beacon!dont-send-mail-to-path-lines

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!bloom-beacon!dont-send-mail-to-path-lines
From: markf@altdorf.ai.mit.EDU ("Mark Friedman")
Newsgroups: comp.lang.scheme.c
Subject: Re: variable argument list question
Message-ID: <9102201926.AA07693@bloom-beacon.MIT.EDU>
Date: 20 Feb 91 18:51:25 GMT
Sender: daemon@athena.mit.edu (Mr Background)
Reply-To: markf@zurich.ai.mit.edu
Organization: The Internet
Lines: 16