Rubyists talk about being cutting edge but how many are using 1.9 in production? Time to convert those verbose 1.8 hashes in to symbolic, succinct 1.9 beauties!
Start file
{:a=>1,:b=>2,:c=>3}
End file
{
a: 1,
b: 2,
c: 3
}
1c1,5
< {:a=>1,:b=>2,:c=>3}
---
> {
> a: 1,
> b: 2,
> c: 3
> }
Unlock
18 remaining solutions by
signing in and submitting your own entry
95 active golfers, 267 entries
23
08/28/2024 at 07:19PM
24
08/28/2024 at 07:19PM
25
08/28/2024 at 07:19PM
26
08/28/2024 at 07:19PM
27
08/28/2024 at 07:19PM
28
08/28/2024 at 07:18PM
30
08/28/2024 at 07:18PM
31
08/28/2024 at 07:18PM
32
08/28/2024 at 07:17PM
33
08/28/2024 at 07:17PM
34
08/28/2024 at 07:17PM
35
08/28/2024 at 07:17PM
37
08/28/2024 at 07:17PM
38
08/28/2024 at 07:17PM
39
08/28/2024 at 07:16PM
41
08/28/2024 at 07:16PM
42
08/28/2024 at 07:16PM
44
08/28/2024 at 07:16PM