hightower3 has quit [Read error: Connection reset by peer]
hightower3 has joined #ruby
moldorcoder7 has joined #ruby
myxobl has joined #ruby
moldorcoder7 has quit [Ping timeout: 240 seconds]
<myxobl>
hey.
<myxobl>
i was was trying different ruby gems for ruby, and they are segfaulting when trying to open the first device, few of them use the microruby implementation, anyone using rawmidi or micromidi gems got into that kind of issue?
<myxobl>
(cause aseqdump or aplaymidi are working fine tho.)
<myxobl>
+midi ruby gems
<myxobl>
micromidi, not microruby...
myxobl has quit [Quit: Best CPUs can count to infinity twice without being bugged out by zero division errors or whatnot.]
<cardma>
anyone using ruby gems micromidi or midi / alsa-rawmidi experienced segmentation fault on device openning?
eddof13 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
cardma has quit [Ping timeout: 240 seconds]
cardma has joined #ruby
influe30 has joined #ruby
cardma has quit [Ping timeout: 240 seconds]
gr33n7007h has quit [Ping timeout: 276 seconds]
gr33n7007h has joined #ruby
shokohsc9 has joined #ruby
shokohsc has quit [Ping timeout: 276 seconds]
shokohsc9 is now known as shokohsc
jhass has quit [Ping timeout: 256 seconds]
dstein64 has joined #ruby
jhass has joined #ruby
Cache_Money has quit [Ping timeout: 260 seconds]
agent_white has joined #ruby
Cache_Money has joined #ruby
keb has joined #ruby
keb has quit [Remote host closed the connection]
influe30 has quit [Ping timeout: 255 seconds]
_ht has joined #ruby
keb has joined #ruby
keb has quit [Client Quit]
Prodigy has joined #ruby
Cache_Money has quit [Quit: Client closed]
Prodigy has quit [Quit: WeeChat 3.8]
Linux_Kerio has joined #ruby
ur5us has quit [Ping timeout: 250 seconds]
<tsujp>
Is it possible to access an array element by index (e.g. with [], or #at, or #first, or #last) and use the accessed element in a block? The docs say those methods don't accept blocks
<tsujp>
The goal is: `some_array.last do |the_element|; puts the_element; end`
hd1 has joined #ruby
hd1 has left #ruby [#ruby]
<tsujp>
Oh.. I guess I could do `some_array.last.map do |e|; puts e; end` actually
_ht has quit [Quit: _ht]
teclator has joined #ruby
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
<ox1eef_>
tsujp: arr[i].tap { puts _1 }
<ox1eef_>
Or, arr[-1].tap { puts _1 }
<ox1eef_>
Not sure why you wouldn't write "puts arr[-1]" though.