lexi-lambda changed the topic of #racket to: Racket v7.5 has been released: https://blog.racket-lang.org/2019/11/racket-v7-5.html -- Racket -- https://racket-lang.org -- https://pkgs.racket-lang.org -- Paste at http://pasterack.org
badkins has joined #racket
dyl_ has joined #racket
badkins has quit [Ping timeout: 265 seconds]
fridim has quit [Quit: Bye!]
dyl has quit [Quit: ZNC 1.7.0+deb0+xenial1 - https://znc.in]
bartbes has quit [Ping timeout: 272 seconds]
bartbes has joined #racket
notzmv has quit [Ping timeout: 268 seconds]
tazjin has quit [Read error: Connection reset by peer]
englishm has quit [Read error: Connection reset by peer]
lexi-lambda has quit [Read error: Connection reset by peer]
theruran has quit [Read error: Connection reset by peer]
hoek has quit [Read error: Connection reset by peer]
nullcone has quit [Read error: Connection reset by peer]
lexi-lambda has joined #racket
englishm has joined #racket
hoek has joined #racket
tazjin has joined #racket
theruran has joined #racket
nullcone has joined #racket
Blkt has quit [Ping timeout: 272 seconds]
Blkt has joined #racket
winny has quit [Ping timeout: 272 seconds]
winny has joined #racket
brettgilio has joined #racket
acarrico has joined #racket
badkins has joined #racket
endobson has joined #racket
ayerhart has quit [Ping timeout: 268 seconds]
ayerhart has joined #racket
ayerhart has quit [Remote host closed the connection]
endobson has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ephemera_ has joined #racket
badkins has quit [Remote host closed the connection]
dustyweb has joined #racket
efm has quit [Remote host closed the connection]
manumanumanu has joined #racket
efm has joined #racket
iyzsong has joined #racket
ziyourenxiang has quit [Quit: Leaving]
dddddd has quit [Ping timeout: 260 seconds]
epony has quit [Quit: reconf]
epony has joined #racket
epony has quit [Max SendQ exceeded]
epony has joined #racket
endformationage has quit [Ping timeout: 240 seconds]
pilne has quit [Quit: We be chillin' - IceChat style]
orivej has joined #racket
narimiran has joined #racket
FreeFull has quit []
lavaflow_ has joined #racket
lavaflow has quit [Ping timeout: 260 seconds]
pera has quit [Ping timeout: 240 seconds]
Sauvin has joined #racket
Sauvin has quit [Max SendQ exceeded]
Sauvin has joined #racket
fridim has joined #racket
ziyourenxiang has joined #racket
endobson has joined #racket
tilpner has quit [Quit: tilpner]
badkins has joined #racket
badkins has quit [Ping timeout: 265 seconds]
endobson has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
endobson has joined #racket
endobson has quit [Ping timeout: 260 seconds]
nullcone has quit [Quit: Connection closed for inactivity]
lavaflow_ is now known as lavaflow
wingo has quit [Read error: Connection reset by peer]
Fernando-Basso has joined #racket
aidalgol has quit [Remote host closed the connection]
wingo has joined #racket
vraid has quit [Ping timeout: 268 seconds]
notzmv has joined #racket
true-grue has joined #racket
Zandose has quit [Ping timeout: 252 seconds]
hoek has quit [Ping timeout: 245 seconds]
krono has quit [Ping timeout: 265 seconds]
tazjin has quit [Ping timeout: 245 seconds]
dddddd has joined #racket
iyzsong has quit [Quit: ZNC 1.7.1 - https://znc.in]
tazjin has joined #racket
hoek has joined #racket
krono has joined #racket
Zandose has joined #racket
nullcone has joined #racket
orivej has quit [Ping timeout: 268 seconds]
dddddd has quit [Remote host closed the connection]
pera has joined #racket
jellie has joined #racket
manualcrank has quit [Quit: WeeChat 1.9.1]
Fernando-Basso has quit [Quit: Leaving]
orivej has joined #racket
endformationage has joined #racket
jmiven has quit [Quit: brb]
jmiven has joined #racket
manicennui has joined #racket
manicennui has quit [Client Quit]
greenfork has joined #racket
badkins has joined #racket
badkins has quit [Ping timeout: 268 seconds]
orivej has quit [Ping timeout: 268 seconds]
manicennui has joined #racket
badkins has joined #racket
ermo has quit [Quit: ZNC 1.7.5 - https://znc.in]
badkins has quit [Remote host closed the connection]
badkins has joined #racket
ArthurStrong has joined #racket
ermo has joined #racket
badkins has quit [Ping timeout: 260 seconds]
jellie has quit [Ping timeout: 260 seconds]
badkins has joined #racket
greenfork has left #racket ["ERC (IRC client for Emacs 26.2)"]
badkins has quit [Remote host closed the connection]
efm has quit [Ping timeout: 260 seconds]
manualcrank has joined #racket
DGASAU has quit [Read error: Connection reset by peer]
DGASAU has joined #racket
badkins has joined #racket
Sauvin has quit [Ping timeout: 260 seconds]
efm has joined #racket
badkins has quit [Remote host closed the connection]
badkins has joined #racket
dddddd has joined #racket
badkins has quit [Remote host closed the connection]
orivej has joined #racket
badkins has joined #racket
aidalgol has joined #racket
efm has quit [Ping timeout: 272 seconds]
notzmv has quit [Ping timeout: 268 seconds]
narimiran has quit [Ping timeout: 260 seconds]
efm has joined #racket
efm has quit [Ping timeout: 260 seconds]
badkins has quit [Remote host closed the connection]
brettgilio has quit [Ping timeout: 246 seconds]
<ArthurStrong> Hi all. I'm calling a function from for/list. It returns a bunch of #<void>. How to suppress them?
<ArthurStrong> Also
<ArthurStrong> Is there a shorthand for (list-ref (list-ref nested-list x) y) ?
brettgilio has joined #racket
<ArthurStrong> wondering...
<technomancy> rackjure can do that for dicts but I don't think for lists
<technomancy> I'd recommend pattern matching
<ArthurStrong> technomancy: how can I use it?
<technomancy> ArthurStrong: which?
<ArthurStrong> technomancy: you replied me or someone else?
<technomancy> ArthurStrong: I replied to you with two different approaches
<ArthurStrong> technomancy: for nested list-refs?
<technomancy> here's how match would work (match nested-list [(list _ _ (list _ x))] x _ 'not-found)
<ArthurStrong> technomancy: aha, thanks
<technomancy> (assuming the position you're looking for is known up-front)
<technomancy> if x and y change at runtime that's not gonna fly
<ArthurStrong> I just wondered is there a well-known function in Lisp/Scheme/Racket. Like in C: array[x][y][z]
<dzoe> ArthurStrong: a quick and dirty hack would be - (define (nested-list-ref lst . indices) (foldl (λ (idx lst) (list-ref lst idx)) lst indices))
* ArthurStrong wrote a function: (define (address-2d-array array r c) (list-ref (list-ref array c) r))
<technomancy> dzoe: is there a "swap argument order" HOF that would allow the lambda to go away?
<technomancy> would be nice to make that point-free
<technomancy> (foldl (reverse-args list-ref) lst indices)
<dzoe> Ah, in my case you would probably need to (reverse indices) to achieve the same result.
<dzoe> Good question :)
<dzoe> (define (reverse-args proc) (lambda args (proc (reverse args)))) ;) ?
<technomancy> right =)
<dzoe> I mean (apply proc (reverse args)) of course
badkins has joined #racket
badkins has quit [Remote host closed the connection]
manumanumanu has quit [Quit: WeeChat 1.9.1]
true-grue has quit [Read error: Connection reset by peer]
orivej has quit [Ping timeout: 265 seconds]
ArthurStrong has quit [Quit: leaving]