- delete
Delete - remove an element from a hash
- delete! does not exist.
examples/hashes/delete.cr
planets = { "Mars" => 1, "Jupyter" => 2, "Saturn" => 3, "Earth" => 4, } puts planets.delete("Mars") puts planets
1 {"Jupyter" => 2, "Saturn" => 3, "Earth" => 4}