-
Notifications
You must be signed in to change notification settings - Fork 1
hash
Tim.Leon edited this page Aug 14, 2013
·
1 revision
Namespace hash
Hash
Defined in: lison.js.
##Method Summary
###getk
<static>
hash.getk (x, key)
Get value from hash
####Parameters:
-
{Hash} x value
-
{String} key key of the hash
####Returns:
- {String} x value
####Example:
["=", "$hash_a", ["hash", {"key": "value"}]]
["getk", "$hash_a", "key"]
>> value
###hash
<static>
hash.hash (x)
Create a hash
####Parameters:
- {Hash} x value
####Returns:
- {Hash} x value
####Example:
["=", "$hash_a", ["hash", {"key": "value"}]]
["getk", "$hash_a", "key"]
>> value
###setk
<static>
hash.setk (x, key, value)
Set value to hash
####Parameters:
-
{Hash} x value
-
{String} key key name
-
{Any} value the value
####Returns:
- {Hash} x value
####Example:
["=", "$hash_a", ["hash", {"key": "value"}]]
["getk", "$hash_a", "key"]
>> value
["setk", "$hash_a", "key", "new_value"]
["getk", "$hash_a", "key"]
>> new_value
Documentation generated by JsDoc Toolkit 2.0.1 on Wed Aug 14 2013 18:18:05 GMT+0800 (CST), Use the JsDoc-Markdown Template.
Author: pkuleon