havenwood changed the topic of #ruby to: Ruby 3.3.6 (3.4.0-rc1) https://www.ruby-lang.org | Log https://libera.irclog.whitequark.org/ruby
Obsdark has joined #ruby
Obsdark has quit [Changing host]
Obsdark has joined #ruby
fercell has quit [Quit: ZNC - https://znc.in]
snoojin has quit [Quit: Connection closed for inactivity]
cappy has quit [Quit: Leaving]
Obsdark has quit [Read error: Connection reset by peer]
<havenwood> o0x1eef: If that's the goal, I might: [1, 5, 2, 3, 4].grep(..3)
gr33n7007h has quit [Quit: WeeChat 4.4.4]
<o0x1eef> That's nice too. My personal favorite was take_while. But the original comment mentioned map. Hopefully leftylink gets back to us
<havenwood> o0x1eef: I suspect #take_while is the optimal solution, but yeah, unclear on the goal.
<havenwood> I assumed the `map(&:itself)` was meant to be like a #to_a assuming the result was an Enumerator not an Array, but dunno.
MsInput has joined #ruby
<o0x1eef> Indeed. 'take_while' maps nicely as an alternative to break.
crespire has quit [Killed (NickServ (GHOST command used by crespire1))]
crespire1 has joined #ruby
jhass has quit [Remote host closed the connection]
jhass has joined #ruby
eddof13 has joined #ruby
eddof13 has quit [Client Quit]
brokkoli_origin has quit [Remote host closed the connection]
brokkoli_origin has joined #ruby
donofrio has joined #ruby
c10l has quit [Ping timeout: 252 seconds]
<havenwood> (1..).take_while(&4.method(:>))
<havenwood> I was looking forward to `4:.>` syntax until it was yanked last minute.
<havenwood> Granted `&4:.>` does start to look sus.
johnjaye has joined #ruby
grenierm has joined #ruby
donofrio has quit [Ping timeout: 244 seconds]
<o0x1eef> That's a lot to unpack. Quite often I like the solution that someone could understand without knowing any or much Ruby.
Linux_Kerio has joined #ruby
CRISPR has joined #ruby
jasfloss has quit [Ping timeout: 245 seconds]
Vonter has quit [Ping timeout: 248 seconds]
CRISPR has quit [Ping timeout: 276 seconds]
Vonter has joined #ruby
jasfloss has joined #ruby
dhruvasagar has quit [Remote host closed the connection]
powersurge3604 has joined #ruby
<leftylink> oh. I thought the matter was settled with take_while so I didn't comment further
Linux_Kerio has quit [Ping timeout: 244 seconds]
powersurge3604 has quit [Quit: The Lounge - https://thelounge.chat]
powersurge3604 has joined #ruby
<o0x1eef> No worries
TomyWork has joined #ruby
leah2 has quit [Ping timeout: 260 seconds]
strangertims has joined #ruby
strangertims has quit [Client Quit]
strangertims has joined #ruby
strangertims has quit [Client Quit]
guest1204 has joined #ruby
guest1204 has quit [Client Quit]
ih8u2 is now known as ih8u
grenierm has quit [Quit: Client closed]
grenierm has joined #ruby
jmcantrell has quit [Ping timeout: 252 seconds]
jmcantrell_ is now known as jmcantrell
leah2 has joined #ruby
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
CRISPR has joined #ruby
ua_ has quit [Ping timeout: 248 seconds]
jardsonto has quit [Remote host closed the connection]
mollerup has joined #ruby
nmollerup has quit [Ping timeout: 265 seconds]
ua_ has joined #ruby
ua_ has quit [Ping timeout: 260 seconds]
CRISPR has quit [Ping timeout: 246 seconds]
CRISPR has joined #ruby
donofrio has joined #ruby
ua_ has joined #ruby
donofrio has quit [Ping timeout: 248 seconds]
brokkoli_origin has quit [Remote host closed the connection]
brokkoli_origin has joined #ruby
grenierm has quit [Ping timeout: 240 seconds]
user71 has joined #ruby
user71 has quit [Max SendQ exceeded]
CRISPR has quit [Ping timeout: 248 seconds]
MyNetAz has quit [Remote host closed the connection]
CRISPR has joined #ruby
CRISPR has quit [Client Quit]
user71 has joined #ruby
MyNetAz has joined #ruby
eddof13 has joined #ruby
___nick___ has joined #ruby
___nick___ has quit [Client Quit]
___nick___ has joined #ruby
Linux_Kerio has joined #ruby
eddof13 has quit [Quit: eddof13]
eddof13 has joined #ruby
mollerup has quit [Ping timeout: 260 seconds]
mollerup has joined #ruby
mollerup has quit [Remote host closed the connection]
mollerup has joined #ruby
MsInput has quit [Quit: WeeChat 4.4.4]
MsInput has joined #ruby
johnjaye has quit [Ping timeout: 276 seconds]
johnjaye has joined #ruby
eddof13 has quit [Quit: eddof13]
eddof13 has joined #ruby
___nick___ has quit [Ping timeout: 272 seconds]
___nick___ has joined #ruby
donofrio has joined #ruby
___nick___ has quit [Ping timeout: 252 seconds]
___nick___ has joined #ruby
mattf has quit [Ping timeout: 276 seconds]
mattf has joined #ruby
sam113102 has joined #ruby
SaveFerris1 has joined #ruby
rhe3 has joined #ruby
mbug_ has joined #ruby
vnpower__ has joined #ruby
<leftylink> pandabot: what's ruby flags
<pandabot> rubyflags is: ruby -ple '$_.upcase!' < input.txt; ruby -nle 'BEGIN { i = c = 0 }; c += $_.size; puts "#{i += 1} #$_"; END { p c }' < input.txt
chromis_ has joined #ruby
sts_ has joined #ruby
jbg_ has joined #ruby
wryishly has joined #ruby
weyhmueller_ has joined #ruby
kenyon_ has joined #ruby
vigumnov has joined #ruby
hayaliali has joined #ruby
alip has quit [Killed (NickServ (GHOST command used by hayaliali))]
hayaliali is now known as alip
ruby[bot] has quit [*.net *.split]
sam113101 has quit [*.net *.split]
chromis has quit [*.net *.split]
kenyon has quit [*.net *.split]
SaveFerris has quit [*.net *.split]
rhe has quit [*.net *.split]
victori has quit [*.net *.split]
weyhmueller has quit [*.net *.split]
graaff has quit [*.net *.split]
tweaks has quit [*.net *.split]
mooff has quit [*.net *.split]
sts has quit [*.net *.split]
wryish has quit [*.net *.split]
vnpower has quit [*.net *.split]
Fusl has quit [*.net *.split]
082AAQ6L6 has quit [*.net *.split]
jbg has quit [*.net *.split]
SaveFerris1 is now known as SaveFerris
rhe3 is now known as rhe
chromis_ is now known as chromis
kenyon_ is now known as kenyon
vnpower__ is now known as vnpower
sts_ is now known as sts
sam113102 is now known as sam113101
mooff has joined #ruby
graaff has joined #ruby
Fusl has joined #ruby
tweaks has joined #ruby
<leftylink> I bet if I learned some awk or something I wouldn't have to keep using those flags
<leftylink> but the thing is I *currently* know how to use those flags far more effectively than I know how to use awk
<leftylink> so, how much effort would it take to learn enough awk to catch up? I don't know!
cappy has joined #ruby
polishdub has quit [Ping timeout: 252 seconds]
MyNetAz has quit [Read error: Connection reset by peer]
polishdub has joined #ruby
<weaksauce> is there a reason you don't have an alias or function in your shell for that leftylink ?
MyNetAz has joined #ruby
brw has quit [Quit: The Lounge - https://thelounge.chat]
brw has joined #ruby
polishdub has quit [Ping timeout: 248 seconds]
Vonter has quit [Ping timeout: 244 seconds]
polishdub has joined #ruby
r3m has quit [Quit: WeeChat 4.5.0-dev]
r3m has joined #ruby
donofrio has quit [Ping timeout: 244 seconds]
polishdub has quit [Ping timeout: 252 seconds]
___nick___ has quit [Ping timeout: 252 seconds]
brw has quit [Quit: The Lounge - https://thelounge.chat]
brw has joined #ruby
snoojin has joined #ruby
__jmcantrell__ has joined #ruby
eddof13 has quit [Quit: eddof13]
donofrio has joined #ruby
eddof13 has joined #ruby
eddof13 has quit [Client Quit]
graywolf has joined #ruby
Linux_Kerio has quit [Ping timeout: 276 seconds]
donofrio has quit [Ping timeout: 265 seconds]
cappy has quit [Quit: Leaving]
donofrio has joined #ruby
donofrio has quit [Read error: Connection reset by peer]
donofrio has joined #ruby
JulioPapel has joined #ruby
polishdub has joined #ruby
mms has quit [Quit: leaving]
mms has joined #ruby
mms` has joined #ruby
mms has quit [Client Quit]
mms` has quit [Remote host closed the connection]
mms has joined #ruby
mms has quit [Remote host closed the connection]
mms has joined #ruby
JulioPapel has quit [Remote host closed the connection]
JulioPapel has joined #ruby
TomyWork has quit [Remote host closed the connection]
TomyWork has joined #ruby
user71 has quit [Quit: Leaving]
JulioPapel has quit [Remote host closed the connection]
JulioPapel has joined #ruby
TomyWork has quit [Ping timeout: 260 seconds]
polishdub has quit [Ping timeout: 252 seconds]
polishdub has joined #ruby
eddof13 has joined #ruby
donofrio has quit [Ping timeout: 252 seconds]
graywolf has quit [Quit: WeeChat 4.4.4]
ruby[bot] has joined #ruby
snoojin has quit [Quit: Connection closed for inactivity]
mange has joined #ruby
graywolf has joined #ruby
JulioPapel has quit [Remote host closed the connection]
JulioPapel has joined #ruby
mms has quit [Ping timeout: 248 seconds]