00:02
dionysus69 has quit [Ping timeout: 268 seconds]
00:05
<
havenwood >
cxl: Maybe you wanted something more like?: %w[A b].reduce { |acc, char| "#{acc}, #{char.downcase}" }
00:12
cryptkeeper has quit [Quit: Connection closed for inactivity]
00:14
finsternis has quit [Read error: Connection reset by peer]
01:10
Festive_Dragon is now known as A_Dragon
01:22
caedmon has quit [Ping timeout: 246 seconds]
01:23
caedmon has joined #ruby
01:34
caedmon has quit [Quit: caedmon]
01:39
caedmon has joined #ruby
01:49
razetime has joined #ruby
01:54
markong has quit [Ping timeout: 265 seconds]
02:05
caedmon has quit [Ping timeout: 260 seconds]
02:15
cartdrige has quit [Read error: Connection reset by peer]
02:15
cartdrige has joined #ruby
02:59
razetime has quit [Ping timeout: 272 seconds]
03:30
cartdrige has quit [Quit: I am more peaced off than a dragon trying to blow out candles]
03:47
niv has joined #ruby
04:06
reset has quit [Quit: reset]
04:13
sympt9 has joined #ruby
04:14
sympt has quit [Ping timeout: 260 seconds]
04:14
sympt9 is now known as sympt
04:14
caedmon has joined #ruby
04:16
Sankalp has quit [Ping timeout: 272 seconds]
04:16
Sankalp- has joined #ruby
04:17
Sankalp- is now known as Sankalp
04:20
caedmon has quit [Quit: caedmon]
04:20
caedmon has joined #ruby
04:21
rvalue has joined #ruby
04:28
rvalue has joined #ruby
04:50
reset has joined #ruby
04:50
caedmon has quit [Ping timeout: 260 seconds]
04:52
jhass has quit [Ping timeout: 265 seconds]
04:53
caedmon has joined #ruby
04:54
jhass has joined #ruby
06:04
rvalue has quit [Read error: Connection reset by peer]
06:04
rvalue has joined #ruby
06:08
agent_white is now known as mitt3ns
06:31
caedmon has quit [Read error: Connection reset by peer]
07:09
tomtmym has joined #ruby
07:09
tomtmym has quit [Changing host]
07:09
tomtmym has joined #ruby
07:17
tomtmym has quit [Quit: Gone.]
07:21
tomtmym has joined #ruby
07:21
tomtmym has quit [Changing host]
07:21
tomtmym has joined #ruby
07:35
teclator has joined #ruby
07:56
reset has quit [Quit: reset]
08:05
tomtmym has quit [Quit: Gone.]
08:08
tomtmym has joined #ruby
08:08
tomtmym has quit [Changing host]
08:08
tomtmym has joined #ruby
08:21
FullMetalStacker has joined #ruby
08:22
FullMetalStacker has quit [Client Quit]
08:35
razetime has joined #ruby
08:52
mitt3ns has quit [Quit: leaving]
09:02
jvalleroy has joined #ruby
09:07
FullMetalStacker has joined #ruby
09:13
polishdub has quit [Ping timeout: 246 seconds]
09:13
weaksauce has quit [Read error: Connection reset by peer]
09:13
weaksauce has joined #ruby
09:15
polishdub has joined #ruby
09:20
cartdrige has joined #ruby
09:32
PedroG1 has quit [Ping timeout: 246 seconds]
09:34
dionysus69 has joined #ruby
09:34
sol has quit [Ping timeout: 260 seconds]
09:35
PedroG1 has joined #ruby
09:35
sol has joined #ruby
09:44
weaksauc_ has joined #ruby
09:47
weaksauce has quit [Ping timeout: 260 seconds]
09:59
_ht has joined #ruby
10:03
dionysus69 has quit [Ping timeout: 268 seconds]
10:08
moldorcoder7 has quit [Ping timeout: 246 seconds]
10:20
___nick___ has joined #ruby
10:26
dionysus69 has joined #ruby
10:54
FetidToot has quit [Ping timeout: 260 seconds]
11:04
teclator has quit [Ping timeout: 248 seconds]
11:09
teclator has joined #ruby
11:20
cartdrige has quit [Quit: I am more peaced off than a dragon trying to blow out candles]
11:23
dionysus69 has quit [Ping timeout: 248 seconds]
11:25
dionysus69 has joined #ruby
11:32
dionysus69 has quit [Ping timeout: 272 seconds]
12:13
cartdrige has joined #ruby
12:21
ht_ has joined #ruby
12:23
<
cxl >
adam12, havenwood: I thought the new value for acc would be the return value of the block
12:23
_ht has quit [Ping timeout: 260 seconds]
12:23
ht_ is now known as _ht
12:24
<
cxl >
['A', 'b'].reduce { |acc, i| [acc, i.downcase].join(', ') }
12:24
<
cxl >
or rather foo = ['A', 'b'].reduce { |acc, i| [acc, i.downcase].join(', ') }
12:24
<
cxl >
then I'd expect foo to be 'a, b'
12:25
cxl has quit [Quit: bye]
12:44
cxl has joined #ruby
12:50
dionysus69 has joined #ruby
13:03
introom has quit [Ping timeout: 272 seconds]
13:06
cxl has quit [Quit: bye]
13:14
dionysus69 has quit [Ping timeout: 264 seconds]
13:18
caedmon has joined #ruby
13:23
perrierjouet has joined #ruby
14:00
tsvallender has joined #ruby
14:01
shiru has joined #ruby
14:01
introom has joined #ruby
14:02
caedmon has quit [Ping timeout: 268 seconds]
14:08
perrierjouet has quit [Quit: WeeChat 3.7.1]
14:21
perrierjouet has joined #ruby
14:25
crax23 has joined #ruby
14:27
cartdrige has quit [Ping timeout: 246 seconds]
14:59
Aminda has quit [Ping timeout: 255 seconds]
14:59
shiru has quit [Quit: leaving]
15:01
Aminda has joined #ruby
15:07
__ht has joined #ruby
15:09
_ht has quit [Ping timeout: 268 seconds]
15:09
__ht is now known as _ht
15:21
hightower2 has quit [Ping timeout: 252 seconds]
15:29
razetime has quit [Quit: razetime]
15:30
Mikaela has joined #ruby
15:30
Aminda has quit [Remote host closed the connection]
15:35
cxl has joined #ruby
15:36
Pixi` has joined #ruby
15:39
Pixi has quit [Ping timeout: 272 seconds]
15:54
crax23 has quit [Quit: I am more peaced off than a dragon trying to blow out candles]
16:15
yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
16:16
yxhuvud has joined #ruby
16:18
reset has joined #ruby
16:25
caedmon has joined #ruby
16:28
moldorcoder7 has joined #ruby
16:57
hightower2 has joined #ruby
17:19
Starfoxxes has quit [Ping timeout: 265 seconds]
18:10
<
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.
18:11
<
leftylink >
therefore there's no way it's psosible to know to call downcase on 'A', because what would the accumulator have been?
18:12
hightower2 has quit [Ping timeout: 264 seconds]
18:19
hightower2 has joined #ruby
18:27
cartdrige has joined #ruby
18:36
dionysus69 has joined #ruby
18:58
___nick___ has joined #ruby
18:59
___nick___ has quit [Client Quit]
19:01
___nick___ has joined #ruby
19:40
cxl has quit [Quit: bye]
19:44
dionysus69 has quit [Ping timeout: 256 seconds]
19:51
cxl has joined #ruby
20:34
Vonter has quit [Ping timeout: 260 seconds]
20:49
goldfish has joined #ruby
20:49
Sheilong has joined #ruby
20:54
hightower3 has joined #ruby
20:57
hightower2 has quit [Ping timeout: 252 seconds]
20:59
victori has quit [Ping timeout: 265 seconds]
21:04
___nick___ has quit [Ping timeout: 252 seconds]
21:08
victori has joined #ruby
21:25
yxhuvud has quit [Remote host closed the connection]
21:26
yxhuvud has joined #ruby
21:31
Starfoxxes has joined #ruby
22:09
_ht has quit [Quit: _ht]
22:24
caedmon has quit [Ping timeout: 246 seconds]
22:37
graywolf has joined #ruby
23:00
ruby[bot] has quit [Remote host closed the connection]
23:00
ruby[bot] has joined #ruby
23:21
budo has joined #ruby
23:26
tomtmym has quit [Quit: Gone.]
23:27
_ht has joined #ruby
23:36
desnudopenguino has joined #ruby
23:37
finsternis has joined #ruby
23:38
___nick___ has joined #ruby
23:38
budo has quit [Quit: Leaving]
23:41
graywolf has quit [Quit: WeeChat 3.5]