average_ has quit [Quit: Connection closed for inactivity]
winny has quit [Remote host closed the connection]
winny has joined #racket
notzmv has quit [Ping timeout: 240 seconds]
capfredf has joined #racket
capfredf has quit [Ping timeout: 246 seconds]
badkins has quit [Remote host closed the connection]
badkins has joined #racket
badkins has quit [Remote host closed the connection]
bremner has quit [Remote host closed the connection]
bremner has joined #racket
notzmv has joined #racket
mdhughes has quit [Quit: Returning to Simulacron-1]
srji has joined #racket
srji has quit [Quit: leaving]
srji has joined #racket
badkins has joined #racket
badkins has quit [Remote host closed the connection]
mdhughes has joined #racket
capfredf has joined #racket
capfredf has quit [Ping timeout: 250 seconds]
ur5us has joined #racket
notzmv has quit [Ping timeout: 250 seconds]
vats has quit [Ping timeout: 240 seconds]
ur5us has quit [Ping timeout: 250 seconds]
capfredf has joined #racket
ttree has quit [Ping timeout: 276 seconds]
capfredf has quit [Remote host closed the connection]
capfredf has joined #racket
ur5us has joined #racket
capfredf has quit [Ping timeout: 240 seconds]
ur5us has quit [Ping timeout: 250 seconds]
vats has joined #racket
capfredf has joined #racket
dhil has joined #racket
jao has joined #racket
capfredf has quit [Remote host closed the connection]
notzmv has joined #racket
skapata has joined #racket
skapata has quit [Changing host]
skapata has joined #racket
dhil has quit [Ping timeout: 272 seconds]
capfredf has joined #racket
jao has quit [Ping timeout: 248 seconds]
capfredf has quit [Ping timeout: 256 seconds]
vats has quit [Ping timeout: 276 seconds]
pono has quit [Ping timeout: 240 seconds]
pono has joined #racket
average_ has joined #racket
badkins has joined #racket
Avichi has joined #racket
capfredf has joined #racket
capfredf has quit [Ping timeout: 272 seconds]
notzmv has quit [Ping timeout: 256 seconds]
badkins has quit [Remote host closed the connection]
notzmv has joined #racket
badkins has joined #racket
twosuns has joined #racket
capfredf has joined #racket
dhil has joined #racket
msiism has joined #racket
<msiism>
Am I right in assuming that building a flat list with cons recursively only really works if the function returns the empty list as the final element?
<msiism>
I'm writing a function to create the string representation of a base-36 number from a decimal number.
vats has joined #racket
<msiism>
And it has to stop recursing when $n / 36 is 0 and return the remainder of that division.
<msiism>
The result then looks like this, for example: (16 3 . 1)
<msiism>
If I try `reverse` on that, I get a contract violation error.
<msiism>
Not so if I flatten that result before.
twosuns has quit [Quit: ...]
<msiism>
Okay, a bit of re-wiring now let's me return the empty list as the final element.
capfredf has quit [Remote host closed the connection]
<msiism>
s/let's/lets/
capfredf has joined #racket
dhil has quit [Quit: Leaving]
badkins has quit [Remote host closed the connection]
badkins has joined #racket
capfredf has quit [Remote host closed the connection]
Avichi has quit [Ping timeout: 252 seconds]
Avichi has joined #racket
littlebobeep has quit [Ping timeout: 240 seconds]
average_ has quit [Quit: Connection closed for inactivity]
notzmv has quit [Ping timeout: 260 seconds]
herlocksholmes has joined #racket
badkins has quit [Remote host closed the connection]
average_ has joined #racket
Avichi has quit [Ping timeout: 252 seconds]
jao has joined #racket
twosuns has joined #racket
notzmv has joined #racket
littlebobeep has joined #racket
average_ has quit [Quit: Connection closed for inactivity]
ttree has joined #racket
badkins has joined #racket
rgherdt_ has quit [Ping timeout: 272 seconds]
badkins has quit [Ping timeout: 256 seconds]
ur5us has joined #racket
rgherdt has joined #racket
badkins has joined #racket
twosuns has quit [Quit: ...]
badkins has quit [Ping timeout: 250 seconds]
ASau has quit [Read error: Connection reset by peer]