跳至内容

AnyLang 编程语言比较/附录:PLEAC 互查:哈希表

来自 Wikibooks,开放世界中的开放书籍

哈希表

[编辑 | 编辑源代码]
ada c++ commonlisp cposix erlang factor forth
groovy guile haskell haskell-on-steroids java masd merd
nasm ocaml perl php pike pliant python
R rexx ruby smalltalk tcl    

向哈希表添加元素

[编辑 | 编辑源代码]
ada c++ commonlisp cposix erlang factor forth
groovy guile haskell haskell-on-steroids java masd merd
nasm ocaml perl php pike pliant python
R rexx ruby smalltalk tcl    

测试哈希表中是否存在键

[编辑 | 编辑源代码]
ada c++ commonlisp cposix erlang factor forth
groovy guile haskell haskell-on-steroids java masd merd
nasm ocaml perl php pike pliant python
R rexx ruby smalltalk tcl    

从哈希表中删除

[编辑 | 编辑源代码]
ada c++ commonlisp cposix erlang factor forth
groovy guile haskell haskell-on-steroids java masd merd
nasm ocaml perl php pike pliant python
R rexx ruby smalltalk tcl    

遍历哈希表

[编辑 | 编辑源代码]
ada c++ commonlisp cposix erlang factor forth
groovy guile haskell haskell-on-steroids java masd merd
nasm ocaml perl php pike pliant python
R rexx ruby smalltalk tcl    

打印哈希表

[编辑 | 编辑源代码]
ada c++ commonlisp cposix erlang factor forth
groovy guile haskell haskell-on-steroids java masd merd
nasm ocaml perl php pike pliant python
R rexx ruby smalltalk tcl    

按插入顺序从哈希表中检索

[编辑 | 编辑源代码]
ada c++ commonlisp cposix erlang factor forth
groovy guile haskell haskell-on-steroids java masd merd
nasm ocaml perl php pike pliant python
R rexx ruby smalltalk tcl    

每个键具有多个值的哈希表

[编辑 | 编辑源代码]
ada c++ commonlisp cposix erlang factor forth
groovy guile haskell haskell-on-steroids java masd merd
nasm ocaml perl php pike pliant python
R rexx ruby smalltalk tcl    

反转哈希表

[编辑 | 编辑源代码]
ada c++ commonlisp cposix erlang factor forth
groovy guile haskell haskell-on-steroids java masd merd
nasm ocaml perl php pike pliant python
R rexx ruby smalltalk tcl    

排序哈希表

[编辑 | 编辑源代码]
ada c++ commonlisp cposix erlang factor forth
groovy guile haskell haskell-on-steroids java masd merd
nasm ocaml perl php pike pliant python
R rexx ruby smalltalk tcl    

合并哈希表

[编辑 | 编辑源代码]
ada c++ commonlisp cposix erlang factor forth
groovy guile haskell haskell-on-steroids java masd merd
nasm ocaml perl php pike pliant python
R rexx ruby smalltalk tcl    

查找两个哈希表中的公共或不同键

[编辑 | 编辑源代码]
ada c++ commonlisp cposix erlang factor forth
groovy guile haskell haskell-on-steroids java masd merd
nasm ocaml perl php pike pliant python
R rexx ruby smalltalk tcl    

哈希引用

[编辑 | 编辑源代码]
ada c++ commonlisp cposix erlang factor forth
groovy guile haskell haskell-on-steroids java masd merd
nasm ocaml perl php pike pliant python
R rexx ruby smalltalk tcl    

预设哈希表大小

[编辑 | 编辑源代码]
ada c++ commonlisp cposix erlang factor forth
groovy guile haskell haskell-on-steroids java masd merd
nasm ocaml perl php pike pliant python
R rexx ruby smalltalk tcl    

查找最常见的任何东西

[编辑 | 编辑源代码]
ada c++ commonlisp cposix erlang factor forth
groovy guile haskell haskell-on-steroids java masd merd
nasm ocaml perl php pike pliant python
R rexx ruby smalltalk tcl    

表示数据之间的关系

[编辑 | 编辑源代码]
ada c++ commonlisp cposix erlang factor forth
groovy guile haskell haskell-on-steroids java masd merd
nasm ocaml perl php pike pliant python
R rexx ruby smalltalk tcl    

程序:dutree

[编辑 | 编辑源代码]
ada c++ commonlisp cposix erlang factor forth
groovy guile haskell haskell-on-steroids java masd merd
nasm ocaml perl php pike pliant python
R rexx ruby smalltalk tcl    
华夏公益教科书