havenwood changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.0.0, 2.7.2, 2.6.6: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ | Logs: https://irclog.whitequark.org/ruby | BLM <3
GodFather has joined #ruby
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #ruby
akem has quit [Ping timeout: 252 seconds]
akem_ has joined #ruby
elcuervo has joined #ruby
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #ruby
factormystic has quit [Read error: Connection reset by peer]
factormystic has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
kenichi has quit [Remote host closed the connection]
kenichi has joined #ruby
Axy has quit [Ping timeout: 240 seconds]
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #ruby
andremedeiros has quit [Read error: Connection reset by peer]
MalkbabY has quit [Remote host closed the connection]
andremedeiros has joined #ruby
MalkbabY has joined #ruby
akem has joined #ruby
patr0clus has joined #ruby
akem_ has quit [Ping timeout: 240 seconds]
ReinH__ is now known as ReinH
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #ruby
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #ruby
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #ruby
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
mouseghost has joined #ruby
<mouseghost> meow meow, is anyone up? is it possible to make an array with a "hole" in one line? like a=[1]; a[3]=2, but with some syntax like [1,3=>2]
<mouseghost> ?
akem_ has joined #ruby
akem has quit [Ping timeout: 240 seconds]
gearnode has quit [Ping timeout: 245 seconds]
roshanavand__ has quit [Ping timeout: 265 seconds]
Lyubo1 has joined #ruby
Tempesta has quit [Read error: Connection reset by peer]
Tempesta has joined #ruby
Tempesta has joined #ruby
Tempesta has quit [Changing host]
GodFather has quit [Ping timeout: 246 seconds]
<havenwood> mouseghost: You can just do it!
<havenwood> &>> a = [1]; a[2] = 42; a
<rubydoc> # => [1, nil, 42] (https://carc.in/#/r/anbd)
<havenwood> mouseghost: Oh, I misread.
<mouseghost> yeah but i was hoping that there was some different syntax ;p
<havenwood> &>> [1, [nil] * 2, 3]
<rubydoc> # => [1, [nil, nil], 3] (https://carc.in/#/r/anbe)
<havenwood> oops
<havenwood> &>> [1, *[nil] * 2, 3]
<rubydoc> # => [1, nil, nil, 3] (https://carc.in/#/r/anbf)
<havenwood> mouseghost: ^
<havenwood> not pretty
<mouseghost> brrr not pretty indeed
<mouseghost> though thanks :3
<havenwood> mouseghost: or you could #fill and shovel on the end?
<havenwood> mouseghost: But no, there's not that specific syntax.
<mouseghost> thanks
<havenwood> any time!
<mouseghost> mlem :3
patr0clus has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maryo has joined #ruby
alexherbo2 has quit [Ping timeout: 240 seconds]
baojg has joined #ruby
akem_ has quit [Ping timeout: 240 seconds]
akem has joined #ruby
al2o3-cr has quit [Quit: WeeChat 3.1]
al2o3-cr has joined #ruby
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #ruby
wald0 has quit [Quit: leaving]
andremedeiros has quit [Read error: Connection reset by peer]
mouseghost has quit [Quit: mew wew]
wald0 has joined #ruby
andremedeiros has joined #ruby
akem_ has joined #ruby
akem has quit [Ping timeout: 260 seconds]
mnathani has joined #ruby
akem has joined #ruby
akem_ has quit [Ping timeout: 240 seconds]
patr0clus has joined #ruby
andremedeiros has quit [Read error: Connection reset by peer]
andremedeiros has joined #ruby
andremedeiros has quit [Read error: Connection reset by peer]
Rounin has quit [Ping timeout: 240 seconds]
andremedeiros has joined #ruby
patr0clus has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MalkbabY has quit [Remote host closed the connection]
MalkbabY has joined #ruby
MalkbabY has quit [Ping timeout: 260 seconds]
akem has quit [Ping timeout: 240 seconds]
akem has joined #ruby
<leftylink> can probably arrange some things with Array.new with block. but even though it would be one line, it would be more code anyway, so it'd not really be worth
patr0clus has joined #ruby
wald0 has quit [Remote host closed the connection]
<havenwood> Or: [1].tap { _1[3] = 3 } #=> [1, nil, nil, 3]
<havenwood> Two lines is appealing. :P
<havenwood> &>> [1].fill(3, 3, 1)
<rubydoc> # => [1, nil, nil, 3] (https://carc.in/#/r/anbl)
<havenwood> leftylink: I think Array#fill is the Ruby way. Just isn't common enough for an inline syntax.
<leftylink> it does seem quite reasonable. better than what I might have been thinking of
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
deviantfero has quit [Ping timeout: 265 seconds]
m27frogy has quit [Ping timeout: 246 seconds]
ChmEarl has quit [Quit: Leaving]
patr0clus has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elcuervo has quit [Read error: Connection reset by peer]
skyikot has joined #ruby
elcuervo has joined #ruby
akem_ has joined #ruby
akem has quit [Ping timeout: 252 seconds]
andremedeiros has quit [Quit: ZNC 1.8.2 - https://znc.in]
howdoi has quit [Quit: Connection closed for inactivity]
vasanth has joined #ruby
gix- has joined #ruby
gix has quit [Disconnected by services]
nixue has quit [Quit: Connection closed]
roshanavand has joined #ruby
shokohsc has quit [Ping timeout: 240 seconds]
skyikot has quit [Ping timeout: 240 seconds]
vasanth has quit [Ping timeout: 240 seconds]
akem_ has quit [Ping timeout: 252 seconds]
akem has joined #ruby
patr0clus has joined #ruby
akem_ has joined #ruby
akem has quit [Ping timeout: 265 seconds]
vasanth has joined #ruby
vasanth has quit [Ping timeout: 240 seconds]
naftilos76 has joined #ruby
vasanth has joined #ruby
vasanth has quit [Ping timeout: 246 seconds]
vasanth has joined #ruby
vasanth has quit [Ping timeout: 260 seconds]
skyikot has joined #ruby
vasanth has joined #ruby
hd1 has joined #ruby
vasanth has quit [Ping timeout: 265 seconds]
<hd1> https://dpaste.com/9QX6K6U77 stupid question time?
patr0clus has quit [Quit: Textual IRC Client: www.textualapp.com]
skyikot has quit [Ping timeout: 240 seconds]
vasanth has joined #ruby
vasanth has quit [Ping timeout: 240 seconds]
Xiti has quit [Quit: Leaving]
vasanth has joined #ruby
vasanth has quit [Ping timeout: 265 seconds]
MalkbabY has joined #ruby
hd1 has quit [Quit: Connection closed]
MalkbabY has quit [Ping timeout: 265 seconds]
vasanth has joined #ruby
gearnode has joined #ruby
vasanth has quit [Ping timeout: 240 seconds]
Mrgoose has quit [Ping timeout: 260 seconds]
Xiti has joined #ruby
Mrgoose has joined #ruby
vasanth has joined #ruby
vasanth has quit [Ping timeout: 240 seconds]
snickers has quit [Read error: Connection reset by peer]
cognemo has quit [Quit: cognemo]
seed0 has quit [Remote host closed the connection]
seed0 has joined #ruby
dinfuehr has quit [Ping timeout: 265 seconds]
dinfuehr has joined #ruby
cognemo has joined #ruby
vasanth has joined #ruby
vasanth has quit [Ping timeout: 252 seconds]
gearnode has quit [Ping timeout: 240 seconds]
vasanth has joined #ruby
Rounin has joined #ruby
vasanth has quit [Ping timeout: 240 seconds]
fercell- has joined #ruby
fercell has quit [Ping timeout: 260 seconds]
<al2o3-cr> Array#insert
vasanth has joined #ruby
vasanth has quit [Ping timeout: 240 seconds]
vasanth has joined #ruby
vasanth has quit [Ping timeout: 240 seconds]
maryo has quit [Ping timeout: 252 seconds]
vasanth has joined #ruby
vasanth has quit [Ping timeout: 252 seconds]
Fire-Dragon-DoL has quit [Ping timeout: 240 seconds]
Fire-Dragon-DoL has joined #ruby
vasanth has joined #ruby
vasanth has quit [Ping timeout: 240 seconds]
Mia has quit [Ping timeout: 240 seconds]
Fire-Dragon-DoL has quit [Ping timeout: 240 seconds]
Fire-Dragon-DoL has joined #ruby
maryo has joined #ruby
vasanth has joined #ruby
vasanth has quit [Ping timeout: 240 seconds]
alexherbo2 has joined #ruby
supercoven has joined #ruby
jhass has quit [Quit: Bye]
vasanth has joined #ruby
maryo has quit [Ping timeout: 240 seconds]
vasanth has quit [Ping timeout: 260 seconds]
cd has quit [Quit: cd]
vasanth has joined #ruby
jhass has joined #ruby
vasanth has quit [Ping timeout: 246 seconds]
lockweel has joined #ruby
alexherbo27 has joined #ruby
alexherbo2 has quit [Ping timeout: 240 seconds]
alexherbo27 is now known as alexherbo2
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
vasanth has joined #ruby
m27frogy has joined #ruby
MalkbabY has joined #ruby
vasanth has quit [Ping timeout: 265 seconds]
MalkbabY has quit [Ping timeout: 240 seconds]
maryo has joined #ruby
vasanth has joined #ruby
vasanth has quit [Ping timeout: 240 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vasanth has joined #ruby
vasanth has quit [Ping timeout: 240 seconds]
akem_ has quit [Ping timeout: 240 seconds]
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
cadeskywalker has quit [Ping timeout: 246 seconds]
Mia has quit [Ping timeout: 260 seconds]
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
baojg has quit [Remote host closed the connection]
baojg has joined #ruby
baojg has quit [Remote host closed the connection]
cadeskywalker has joined #ruby
jetchisel has quit [Ping timeout: 240 seconds]
jetchisel has joined #ruby
fercell has joined #ruby
fercell- has quit [Ping timeout: 252 seconds]
alexherbo2 has quit [Quit: The Lounge - https://thelounge.chat]
fercell- has joined #ruby
fercell has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
naftilos76 has quit [Ping timeout: 252 seconds]
MalkbabY has joined #ruby
daed_ is now known as daed
daed has quit [Changing host]
daed has joined #ruby
Rudd0 has quit [Ping timeout: 265 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 268 seconds]
pmden has joined #ruby
pmden has quit [Changing host]
pmden has joined #ruby
cliluw has quit [Ping timeout: 240 seconds]
maryo has quit [Ping timeout: 240 seconds]
cliluw has joined #ruby
pmden has quit [Quit: quit]
podge has joined #ruby
foxxx0 has quit [Quit: foxxx0]
foxxx0 has joined #ruby
podge has quit [Ping timeout: 246 seconds]
podge has joined #ruby
podge has quit [Quit: quit]
hiroaki has quit [Ping timeout: 240 seconds]
akem has joined #ruby
hiroaki has joined #ruby
MalkbabY has quit [Remote host closed the connection]
MalkbabY has joined #ruby
MalkbabY has quit [Ping timeout: 265 seconds]
cliluw has quit [Ping timeout: 268 seconds]
MalkbabY has joined #ruby
skyikot has joined #ruby
shtirlic_ has quit [Read error: Connection reset by peer]
shtirlic has joined #ruby
MalkbabY has quit [Remote host closed the connection]
MalkbabY has joined #ruby
MalkbabY has quit [Ping timeout: 268 seconds]
MalkbabY has joined #ruby
maryo has joined #ruby
naftilos76 has joined #ruby
ChmEarl has joined #ruby
patr0clus has joined #ruby
patr0clus has quit [Client Quit]
patr0clus has joined #ruby
wald0 has joined #ruby
Rudd0 has joined #ruby
skyikot has quit [Ping timeout: 240 seconds]
MalkbabY has quit [Remote host closed the connection]
MalkbabY has joined #ruby
MalkbabY has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
elcuervo has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 268 seconds]
elcuervo has joined #ruby
maryo has quit [Ping timeout: 268 seconds]
dka has joined #ruby
alexherbo2 has joined #ruby
roshanavand_ has joined #ruby
gearnode has joined #ruby
kenichi has quit [Ping timeout: 260 seconds]
roshanavand has quit [Ping timeout: 252 seconds]
Xiti has quit [Quit: Leaving]
wald0 has quit [Quit: leaving]
daemonwrangler has joined #ruby
akem_ has joined #ruby
akem has quit [Ping timeout: 246 seconds]
akem_ has quit [Client Quit]
daemonwrangler has quit [Quit: ZNC 1.8.2 - https://znc.in]
akem has joined #ruby
daemonwrangler has joined #ruby
al2o3-cr has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
cow[moo] has joined #ruby
e has quit [Quit: edk]
jenrzzz has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
MalkbabY has joined #ruby
MalkbabY has quit [Ping timeout: 268 seconds]
jess has quit []
e has joined #ruby
alexherbo2 has quit [Read error: Connection reset by peer]
Xiti has joined #ruby
alexherbo2 has joined #ruby
ur5us_ has joined #ruby
cd has joined #ruby
akem_ has joined #ruby
akem has quit [Ping timeout: 240 seconds]
ua has quit [Ping timeout: 246 seconds]
ua has joined #ruby
alexherbo2 has quit [Ping timeout: 246 seconds]
alexherbo2 has joined #ruby
shokohsc has joined #ruby
kenichi has joined #ruby
ur5us_ has quit [Ping timeout: 276 seconds]
tpefreedom has joined #ruby
MalkbabY has joined #ruby
duderonomy has joined #ruby
akem has joined #ruby
tpefreedom has quit [Quit: Leaving]
akem has quit [Quit: leaving]
patr0clus has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
akem_ has quit [Ping timeout: 268 seconds]
akem has joined #ruby
Rudd0 has quit [Ping timeout: 246 seconds]
TCZ has joined #ruby
naftilos76 has quit [Ping timeout: 246 seconds]
supercoven has quit [Read error: Connection reset by peer]
MalkbabY has quit [Remote host closed the connection]
MalkbabY has joined #ruby
patr0clus has joined #ruby
MalkbabY has quit [Ping timeout: 240 seconds]
duderonomy has quit [Ping timeout: 252 seconds]
patr0clus has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
patr0clus has joined #ruby
dpl__ has joined #ruby
ur5us_ has joined #ruby
Rudd0 has joined #ruby
shtirlic_ has joined #ruby
shtirlic_ has quit [Client Quit]
shtirlic_ has joined #ruby
dionysus69 has joined #ruby
dionysus69 has quit [Changing host]
dionysus69 has joined #ruby
dionysus69 has quit [Client Quit]
shtirlic has quit [Ping timeout: 246 seconds]
swaggboi has quit [Quit: C-x C-c]
swaggboi has joined #ruby
helmout[m] has joined #ruby
ChmEarl has quit [Read error: Connection reset by peer]
gdonald has quit [Remote host closed the connection]
TCZ has quit [Quit: Czesc]
ChmEarl has joined #ruby
al2o3-cr has joined #ruby
mcr has quit [Read error: Connection reset by peer]
mcr has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
gdonald has joined #ruby
Rudd0 has quit [Ping timeout: 240 seconds]
adu_ has joined #ruby
tpefreedom has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cow[moo] has joined #ruby
ur5us_ has quit [Ping timeout: 276 seconds]