j
k
j a
j l
... end "raise" will return after output error message, here better be: def delete(key : String) initialized_keys = get_initialized_keys raise "Should not delete #{key}" if initialized_keys.includes?(key) @hash.delete(key) end
end
"raise" will return after output error message, here better be:
def delete(key : String) initialized_keys = get_initialized_keys raise "Should not delete #{key}" if initialized_keys.includes?(key)
@hash.delete(key) end
Good!
Thanks, Zhangyu
Back to the thread
Back to the list