vancz has joined #racket
<
vancz>
Hi, is it possible to pattern match on something being a list without destructuring it?
tgi has joined #racket
thegeekinside has quit [Ping timeout: 252 seconds]
thegeekinside has joined #racket
<
vancz>
I've done (and l (list-rest h t)) but that's ugly
badkins has joined #racket
tgi has quit [Ping timeout: 252 seconds]
tgi has joined #racket
thegeekinside has quit [Ping timeout: 252 seconds]
thegeekinside has joined #racket
ec_ has quit [Ping timeout: 255 seconds]
tgi has quit [Ping timeout: 260 seconds]
ec_ has joined #racket
<
vancz>
ok (list l ...) has been found
codingquark has quit [Ping timeout: 246 seconds]
jeosol has quit [Ping timeout: 260 seconds]
badkins has quit [Remote host closed the connection]
badkins has joined #racket
badkins has quit [Ping timeout: 260 seconds]
libertyprime has quit [Ping timeout: 260 seconds]
codingquark has joined #racket
tgi has joined #racket
thegeekinside has quit [Ping timeout: 260 seconds]
libertyprime has joined #racket
codingquark has quit [Read error: Connection reset by peer]
codingquark has joined #racket
monaaraj has joined #racket
sagax has joined #racket
ur5us has quit [Ping timeout: 260 seconds]
badkins has joined #racket
badkins has quit [Ping timeout: 252 seconds]
jao has left #racket [#racket]
libertyprime has quit [Ping timeout: 260 seconds]
jeosol has joined #racket
monkey_ has quit [Remote host closed the connection]
krjst has quit [Read error: Software caused connection abort]
krjst has joined #racket
badkins has joined #racket
badkins has quit [Ping timeout: 260 seconds]
skapata has quit [Remote host closed the connection]
sagax has quit [Read error: Connection reset by peer]
sagax has joined #racket
ur5us has joined #racket
libertyprime has joined #racket
sagax has quit [Ping timeout: 260 seconds]
libertyprime has quit [Ping timeout: 260 seconds]
sagax has joined #racket
libertyprime has joined #racket
ttree has quit [Ping timeout: 260 seconds]
badkins has joined #racket
badkins has quit [Ping timeout: 248 seconds]
aidalgol_ has joined #racket
aidalgol has quit [Ping timeout: 252 seconds]
libertyprime has quit [Ping timeout: 260 seconds]
sudden has quit [Ping timeout: 248 seconds]
sudden has joined #racket
libertyprime has joined #racket
aidalgol_ is now known as aidalgol
ur5us has quit [Ping timeout: 260 seconds]
libertyprime has quit [Ping timeout: 246 seconds]
<
jboy>
you can also just use `list?`
<
jboy>
(match (list 1 2 3) [list? 'foo] [_ 'bar]) ; => 'foo
tgi has quit [Ping timeout: 248 seconds]
libertyprime has joined #racket
badkins has joined #racket
libertyprime has quit [Ping timeout: 252 seconds]
badkins has quit [Ping timeout: 252 seconds]
jao has joined #racket
ASau has quit [Quit: ERC (IRC client for Emacs 25.3.1)]
morte_ has joined #racket
badkins has joined #racket
badkins has quit [Ping timeout: 248 seconds]
badkins has joined #racket
thegeekinside has joined #racket
ASau has joined #racket
cwebber has quit [Read error: Connection reset by peer]
jeosol has quit [Quit: Client closed]
skapata has joined #racket
morte_ has quit [Read error: Connection reset by peer]
monkey_ has joined #racket
badkins has quit [Remote host closed the connection]
monaaraj has quit [Ping timeout: 252 seconds]
monaaraj has joined #racket
badkins has joined #racket
TCZ has joined #racket
monkey_ has quit [Ping timeout: 260 seconds]
monkey_ has joined #racket
TCZ has quit [Remote host closed the connection]
monaaraj has quit [Ping timeout: 260 seconds]
TCZ has joined #racket
libertyprime has joined #racket
monkey_ has quit [Ping timeout: 248 seconds]
TCZ has quit [Remote host closed the connection]
TCZ has joined #racket
TCZ has quit [Remote host closed the connection]
TCZ has joined #racket
libertyprime has quit [Ping timeout: 260 seconds]
badkins has quit [Remote host closed the connection]
badkins has joined #racket
badkins has quit [Ping timeout: 252 seconds]
badkins has joined #racket
badkins has quit [Ping timeout: 248 seconds]
morte_ has joined #racket
TCZ has quit [Quit: Leaving]
ttree has joined #racket
badkins has joined #racket
jeosol has joined #racket
morte_ has quit [Read error: Connection reset by peer]
morte_ has joined #racket
morte_ has quit [Ping timeout: 248 seconds]
libertyprime has joined #racket
jeosol has quit [Ping timeout: 260 seconds]
skapata has quit [Remote host closed the connection]
monkey_ has joined #racket
libertyprime has quit [Ping timeout: 246 seconds]
ur5us has joined #racket
badkins has quit [Remote host closed the connection]
badkins has joined #racket
libertyprime has joined #racket
badkins has quit [Ping timeout: 248 seconds]
badkins has joined #racket
ttree has quit [Ping timeout: 260 seconds]
badkins has quit [Ping timeout: 260 seconds]
jackhill has quit [Ping timeout: 255 seconds]
ec_ has quit [Ping timeout: 255 seconds]
ec_ has joined #racket
cwebber has joined #racket
monkey_ has quit [Read error: Connection reset by peer]
thegeekinside has quit [Remote host closed the connection]
jackhill has joined #racket
thegeekinside has joined #racket
badkins has joined #racket
badkins has quit [Ping timeout: 252 seconds]
xgqt has quit [Remote host closed the connection]
xgqt has joined #racket
monkey_ has joined #racket
badkins has joined #racket