Monday, November 4, 2013

How to delete a key from the hash - Ruby

You can delete a key by using the delete function of the hash. Here is the example:

hash = {'a' => '1', '1' => 'a'}
puts hash
puts hash

No comments:

Get function name programaticaly - Python

This little piece of code will help you to get the function name programatically. This is very helpful when you are implementing the debug...