普贤教程 › 包参考
splstruct 包
SPL 数据结构(双向链表 + 定长数组)
splstruct.px — SPL 数据结构(双向链表 + 定长数组)
| 项 | 值 |
|---|---|
| 包名 | splstruct |
| 版本 | 0.1.0 |
| 入口 | splstruct.px |
| 分类 | 数据结构 |
| 文件数 / 行数 | 1 / 58 |
安装与引入
bash
pxpkg init # 首次 pxpkg add splstruct@0.1.0 pxpkg install
px
import splstruct所属分类教程:数据结构
其余 12 个 def(内部与辅助,可直接调用但不属稳定接口)
| 函数 | 参数 |
|---|---|
dll_new | |
dll_push_front | dll, val |
dll_push_back | dll, val |
dll_pop_front | dll |
dll_pop_back | dll |
dll_size | dll |
dll_to_list | dll |
fa_new | capacity |
fa_set | fa, index, val |
fa_get | fa, index |
fa_size | fa |
fa_to_list | fa |
包内说明(源码头注释)
text
splstruct.px — SPL 数据结构(双向链表 + 定长数组)