Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #131 from Mouq/master
Add Hash opcodes to ops.markdown
  • Loading branch information
zhuomingliang committed Sep 18, 2013
2 parents 965a55e + 436f7a5 commit 165d8e5
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions docs/ops.markdown
Expand Up @@ -227,6 +227,32 @@ Return non-zero if the two parameters are not equal.

# Hash opcodes

## atkey
* `atkey(Any %hash, String $key)`
* `atkey_i(int %hash, String $key)`
* `atkey_n(num %hash, String $key)`
* `atkey_s(str %hash, String $key)`

Return the value of %hash at key $key.

## bindkey
* `bindkey(Any %hash, String $key, Any $b)`
* `bindkey_i(int %hash, String $key, int $b)`
* `bindkey_n(num %hash, String $key, num $b)`
* `bindkey_s(str %hash, String $key, str $b)`

Bind key $key of %hash to $b and return $b.

## existskey
* `existskey(Any %hash, String $key)`

Return non-zero if %hash has key $key bound to something.

## deletekey
* `deletekey(Any %hash, String $key)`

Delete the given key from %hash.

# String Opcodes

## radix
Expand Down

0 comments on commit 165d8e5

Please sign in to comment.