havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.2.0, 3.1.3, 3.0.5, 2.7.7: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://t.ly/9ua4 | Logs: https://libera.irclog.whitequark.org/ruby/
dionysus69 has quit [Ping timeout: 268 seconds]
<havenwood> cxl: Maybe you wanted something more like?: %w[A b].reduce { |acc, char| "#{acc}, #{char.downcase}" }
cryptkeeper has quit [Quit: Connection closed for inactivity]
finsternis has quit [Read error: Connection reset by peer]
Festive_Dragon is now known as A_Dragon
caedmon has quit [Ping timeout: 246 seconds]
caedmon has joined #ruby
caedmon has quit [Quit: caedmon]
caedmon has joined #ruby
razetime has joined #ruby
markong has quit [Ping timeout: 265 seconds]
caedmon has quit [Ping timeout: 260 seconds]
cartdrige has quit [Read error: Connection reset by peer]
cartdrige has joined #ruby
razetime has quit [Ping timeout: 272 seconds]
cartdrige has quit [Quit: I am more peaced off than a dragon trying to blow out candles]
niv has quit [Quit: Powered by LunarBNC: https://LunarBNC.net]
niv has joined #ruby
reset has quit [Quit: reset]
sympt9 has joined #ruby
sympt has quit [Ping timeout: 260 seconds]
sympt9 is now known as sympt
caedmon has joined #ruby
Sankalp has quit [Ping timeout: 272 seconds]
Sankalp- has joined #ruby
Sankalp- is now known as Sankalp
caedmon has quit [Quit: caedmon]
caedmon has joined #ruby
rvalue has quit [Quit: ZNC - https://znc.in]
rvalue has joined #ruby
rvalue has quit [Quit: ZNC - https://znc.in]
rvalue has joined #ruby
reset has joined #ruby
caedmon has quit [Ping timeout: 260 seconds]
jhass has quit [Ping timeout: 265 seconds]
caedmon has joined #ruby
jhass has joined #ruby
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
agent_white is now known as mitt3ns
caedmon has quit [Read error: Connection reset by peer]
tomtmym has joined #ruby
tomtmym has quit [Changing host]
tomtmym has joined #ruby
tomtmym has quit [Quit: Gone.]
tomtmym has joined #ruby
tomtmym has quit [Changing host]
tomtmym has joined #ruby
teclator has joined #ruby
reset has quit [Quit: reset]
tomtmym has quit [Quit: Gone.]
tomtmym has joined #ruby
tomtmym has quit [Changing host]
tomtmym has joined #ruby
FullMetalStacker has joined #ruby
FullMetalStacker has quit [Client Quit]
razetime has joined #ruby
mitt3ns has quit [Quit: leaving]
jvalleroy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
jvalleroy has joined #ruby
FullMetalStacker has joined #ruby
polishdub has quit [Ping timeout: 246 seconds]
weaksauce has quit [Read error: Connection reset by peer]
weaksauce has joined #ruby
polishdub has joined #ruby
cartdrige has joined #ruby
FullMetalStacker has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
PedroG1 has quit [Ping timeout: 246 seconds]
dionysus69 has joined #ruby
sol has quit [Ping timeout: 260 seconds]
PedroG1 has joined #ruby
sol has joined #ruby
weaksauc_ has joined #ruby
weaksauce has quit [Ping timeout: 260 seconds]
_ht has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
moldorcoder7 has quit [Ping timeout: 246 seconds]
___nick___ has joined #ruby
dionysus69 has joined #ruby
FetidToot has quit [Ping timeout: 260 seconds]
teclator has quit [Ping timeout: 248 seconds]
teclator has joined #ruby
cartdrige has quit [Quit: I am more peaced off than a dragon trying to blow out candles]
dionysus69 has quit [Ping timeout: 248 seconds]
dionysus69 has joined #ruby
dionysus69 has quit [Ping timeout: 272 seconds]
cartdrige has joined #ruby
ht_ has joined #ruby
<cxl> adam12, havenwood: I thought the new value for acc would be the return value of the block
_ht has quit [Ping timeout: 260 seconds]
ht_ is now known as _ht
<cxl> ['A', 'b'].reduce { |acc, i| [acc, i.downcase].join(', ') }
<cxl> or rather foo = ['A', 'b'].reduce { |acc, i| [acc, i.downcase].join(', ') }
<cxl> then I'd expect foo to be 'a, b'
cxl has quit [Quit: bye]
cxl has joined #ruby
dionysus69 has joined #ruby
introom has quit [Ping timeout: 272 seconds]
cxl has quit [Quit: bye]
dionysus69 has quit [Ping timeout: 264 seconds]
caedmon has joined #ruby
perrierjouet has joined #ruby
tsvallender has joined #ruby
shiru has joined #ruby
introom has joined #ruby
caedmon has quit [Ping timeout: 268 seconds]
perrierjouet has quit [Quit: WeeChat 3.7.1]
perrierjouet has joined #ruby
crax23 has joined #ruby
cartdrige has quit [Ping timeout: 246 seconds]
Aminda has quit [Ping timeout: 255 seconds]
shiru has quit [Quit: leaving]
Aminda has joined #ruby
__ht has joined #ruby
_ht has quit [Ping timeout: 268 seconds]
__ht is now known as _ht
hightower2 has quit [Ping timeout: 252 seconds]
razetime has quit [Quit: razetime]
Mikaela has joined #ruby
Aminda has quit [Remote host closed the connection]
cxl has joined #ruby
Pixi` has joined #ruby
Pixi has quit [Ping timeout: 272 seconds]
crax23 has quit [Quit: I am more peaced off than a dragon trying to blow out candles]
yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
yxhuvud has joined #ruby
reset has joined #ruby
caedmon has joined #ruby
moldorcoder7 has joined #ruby
hightower2 has joined #ruby
Starfoxxes has quit [Ping timeout: 265 seconds]
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<leftylink> what cxl didn't take into account is that reduce, when not given an initial accumulator, is like foldl1, whereas if you want it to act like foldl, you need to give it one.
<leftylink> therefore there's no way it's psosible to know to call downcase on 'A', because what would the accumulator have been?
hightower2 has quit [Ping timeout: 264 seconds]
hightower2 has joined #ruby
cartdrige has joined #ruby
dionysus69 has joined #ruby
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has joined #ruby
___nick___ has quit [Client Quit]
___nick___ has joined #ruby
cxl has quit [Quit: bye]
dionysus69 has quit [Ping timeout: 256 seconds]
cxl has joined #ruby
Vonter has quit [Ping timeout: 260 seconds]
goldfish has joined #ruby
Sheilong has joined #ruby
hightower3 has joined #ruby
hightower2 has quit [Ping timeout: 252 seconds]
victori has quit [Ping timeout: 265 seconds]
___nick___ has quit [Ping timeout: 252 seconds]
victori has joined #ruby
yxhuvud has quit [Remote host closed the connection]
yxhuvud has joined #ruby
Starfoxxes has joined #ruby
_ht has quit [Quit: _ht]
caedmon has quit [Ping timeout: 246 seconds]
graywolf has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
budo has joined #ruby
tomtmym has quit [Quit: Gone.]
_ht has joined #ruby
desnudopenguino has joined #ruby
finsternis has joined #ruby
___nick___ has joined #ruby
budo has quit [Quit: Leaving]
graywolf has quit [Quit: WeeChat 3.5]