ChanServ changed the topic of #racket to: The Racket Programming Language -- https://racket-lang.org/ -- https://racket.discourse.group/ -- http://pasterack.org -- logged at https://libera.irclog.whitequark.org/racket/ -- This is the right place to ask for help with DrRacket. Remember to wait around for an answer!
Origin has joined #racket
Origin has quit [Ping timeout: 276 seconds]
skapata has quit [Read error: Connection reset by peer]
shawnw has joined #racket
spynxic has quit [Server closed connection]
spynxic has joined #racket
DragonMaus has quit [Ping timeout: 252 seconds]
DragonMaus has joined #racket
skapata has joined #racket
dhil has joined #racket
skapata has quit [Remote host closed the connection]
msiism has joined #racket
<msiism> I've written a small variadic function demo for my notes and have two questions about it: 1. Is there a better way to do what I'm doing, using a variadic function? 2. Isn't it generally better to pass a data structure, e.g., a list in such a case?
vjalmr_ has joined #racket
vjalmr has quit [Ping timeout: 276 seconds]
shawnw has quit [Ping timeout: 245 seconds]
Origin has joined #racket
Origin has quit [Ping timeout: 245 seconds]
skeemer has joined #racket
skeemer has quit [Ping timeout: 272 seconds]
runrin has quit [Ping timeout: 252 seconds]
<priime> msiism: This seems like somewhat of a contrived example, so to answer 2., yes, it would be better to just pass in a list. Then, the signature of your add1 function would be List -> List. Perhaps you need a different example for a variadic function?
Tuplanolla has joined #racket
<msiism> I was just meaning to demonstrate how taking any number of arguments would work, for my personal reference. The function wasn't meant to accomplish anything particularly meaningful.
<msiism> So, I'm sure there are better examples.
<msiism> I mean `+` is itself a variadic function, isn't it?
dhil has quit [Quit: Leaving]
<msiism> And it would be a bit of a nuisance to always have to pass it a list of arguments instead of just the arguments.
skeemer has joined #racket
runrin has joined #racket
<bremner> msiism: plus has a different signature than your function though
<bremner> msiism: your function looks like (lambda (lst) (map add1 lst))
<msiism> I see.
<msiism> And `+` always returns number, as it seems.
<msiism> Well, yeah, the signature says so.
<bremner> maybe an interesting example to impliment would be (List a b c ...) that does the same as (list a b c ...) using cons and recursion
<bremner> or for/fold for a higher level tool
vjalmr_ is now known as vjalmr
<msiism> Okay, that makes sense.
dunj3 has quit [*.net *.split]
lowhope has quit [*.net *.split]
wwalker has quit [*.net *.split]
leah2 has quit [*.net *.split]
rahmanlar has quit [*.net *.split]
gnomon has quit [*.net *.split]
ftzm has quit [*.net *.split]
gabot has quit [*.net *.split]
jsoo has quit [*.net *.split]
mason has quit [*.net *.split]
spynxic has quit [*.net *.split]
ashpool has quit [*.net *.split]
samth has quit [*.net *.split]
runxiyu has quit [*.net *.split]
m1dnight_ has quit [*.net *.split]
vancz has quit [*.net *.split]
nm0i has quit [*.net *.split]
artyn has quit [*.net *.split]
cpli has quit [*.net *.split]
simendsjo has quit [*.net *.split]
djelic has quit [*.net *.split]
raghavgururajan has quit [*.net *.split]
kawzeg has quit [*.net *.split]
Duns_Scrotus has quit [*.net *.split]
dpk has quit [*.net *.split]
jboy has quit [*.net *.split]
lowhope has joined #racket
wwalker has joined #racket
leah2 has joined #racket
rahmanlar has joined #racket
gnomon has joined #racket
ftzm has joined #racket
gabot has joined #racket
jsoo has joined #racket
mason has joined #racket
runxiyu has joined #racket
spynxic has joined #racket
m1dnight_ has joined #racket
vancz has joined #racket
artyn has joined #racket
ashpool has joined #racket
simendsjo has joined #racket
cpli has joined #racket
samth has joined #racket
nm0i has joined #racket
kawzeg has joined #racket
Duns_Scrotus has joined #racket
raghavgururajan has joined #racket
dpk has joined #racket
djelic has joined #racket
jboy has joined #racket
runxiyu_ has joined #racket
dunj3 has joined #racket
runxiyu has quit [Max SendQ exceeded]
lowhope has quit [Ping timeout: 276 seconds]
lowhope has joined #racket
msiism has left #racket [Konversation vaporized.]
svm has joined #racket
msv has quit [Read error: Connection reset by peer]
skapata has joined #racket
skeemer has quit [Ping timeout: 255 seconds]
spdegabrielle has joined #racket
<spdegabrielle> (fifteenth RacketCon) October 4-5, 2025, UMass Boston https://con.racket-lang.org [To register, buy a ticket via Eventbrite](https://www.eventbrite.com/e/racketcon-2025-tickets-1578775272339). If you cannot attend in-person, there is an option to help support the livestream for remote participants.
Tuplanolla has quit [Ping timeout: 260 seconds]
dunj3 has quit [Server closed connection]
dunj3 has joined #racket
_whitelogger has joined #racket