1.1.2
Try it!
paste to highlight
Download
Source
|
Bugtracker
Documentation
in autumnal colors
Old website
filter hash in place
Ruby code posted
created at 19 Jan 00:04, updated at 19 Jan 00:05
Edit
|
Back
1
2
3
4
h
=
{
:bob
=
>
'
bob
'
,
ralph
=
>
'
ralph
'
}
h
.
select!
{
|
k
,
v
|
k
.
to_s
=
~
/
ob
/
}
=
>
{
:bob
=
>
'
bob
'
}
91 Bytes in 2 ms with coderay