2 ms·
I am not a Ruby programmer. What's the syntax for using a variable as the key, which is actually synonymous with the Python code?
by jerf 16y ago
I am not a Ruby programmer. What's the syntax for using a variable as the key, which is actually synonymous with the Python code?
- deleted 16y ago[deleted]
- j_baker 16y agoIt would be something like this: >> a = :foobar => :foobar >> {a => 1} => {:foobar=>1}