Skip to content

Commit 165d8e5

Browse files
committed
Merge pull request #131 from Mouq/master
Add Hash opcodes to ops.markdown
2 parents 965a55e + 436f7a5 commit 165d8e5

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

docs/ops.markdown

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,32 @@ Return non-zero if the two parameters are not equal.
227227

228228
# Hash opcodes
229229

230+
## atkey
231+
* `atkey(Any %hash, String $key)`
232+
* `atkey_i(int %hash, String $key)`
233+
* `atkey_n(num %hash, String $key)`
234+
* `atkey_s(str %hash, String $key)`
235+
236+
Return the value of %hash at key $key.
237+
238+
## bindkey
239+
* `bindkey(Any %hash, String $key, Any $b)`
240+
* `bindkey_i(int %hash, String $key, int $b)`
241+
* `bindkey_n(num %hash, String $key, num $b)`
242+
* `bindkey_s(str %hash, String $key, str $b)`
243+
244+
Bind key $key of %hash to $b and return $b.
245+
246+
## existskey
247+
* `existskey(Any %hash, String $key)`
248+
249+
Return non-zero if %hash has key $key bound to something.
250+
251+
## deletekey
252+
* `deletekey(Any %hash, String $key)`
253+
254+
Delete the given key from %hash.
255+
230256
# String Opcodes
231257

232258
## radix

0 commit comments

Comments
 (0)