5.2
另见名扩展库:
5.2.1 例程命名规则
见Naming Rules,有:
规则 | 含义 | 进出参 | 举例 |
对加山/氵中任一者的 | 指示内容是否可变 | 是不可或可被增加、删除或修改的 | |
对加偏旁 | 构造生成特殊元素组成的 | 出参数据结构是 | |
左偏旁亻 | 相似集(类型相同且元素相似) | 出参数据与进参数据相比,类型相同且内容类似 | |
扌偏旁 | 指示修改方式 | 直接修改了原始数据 | |
以起头 | 指示入参 | 入参数据是类数据 | |
以化结尾 | 类型转换 | 出参数据内容不变而类型作小幅度改变 | |
以化联结 | 类型转换 | 出参数据内容不变而类型改变 | |
+结尾 | 入参 | 入参数据以相同方式多次出现 |
5.2.2 ,、,?,?、?,?
为新造字
为新造字
为新造字
为新造字
参见:固?、易?
另外,“”按内容是否可以被修改,可以被分为:“易”和“固”,简写为“”和“”,“”为默认值。
5.2.3 、,
5.2.4 巨,弔,𠆯、
5.2.5 化,化、化、化
5.2.6 、、分、
> ( '#(a b c d e f) 2) '#(a b)
> ( '#(a b c d e f) 2) '#(c d e f)
> (分 '#(a b c d e f) 2)
'#(a b)
'#(c d e f)
> ( '#(a b c d e f) 0 2) '#(a b)
5.2.7 弓,佫、挌,,
5.2.8 ,+,𰅡,/以
另见:
5.2.9 基础例程
(require ming/racket/base) | package: ming |
汉字化
汉字化
汉字化
: elem + 构造构造内容是若干而相同元素的 + need to fix = make-vector
汉字化
: elem + 构造内容不能被修改的数组 = vector-immutable
汉字化
巨 : elem + 返回的长度 = vector-length
汉字化
弔 : elem + 返回的某索引处的元素 = vector-ref
汉字化
: elem + 直接修改原数组中某索引处的元素为新值 = vector-set!
汉字化
化 : elem + 将 + need to fix + 数据转化为 + need to fix
= vector->list
汉字化
化 : elem + 将 + need to fix + 数据转化为 + need to fix
= list->vector
汉字化
化 : elem + 将 + need to fix + 数据转化为 + need to fix + 数据
= vector->immutable-vector
汉字化
𰅡 : elem + 直接修改 + need to fix + 数据使其转化成 + need to fix + 数据
= vector-fill!
汉字化
/以 : elem + 从本的第N处索引的数值开始做修改(以另一个的 + need to fix + 为内容)
= vector-copy!
汉字化
化 : elem + 将 + need to fix + 数据转化为 + need to fix + 数据
= vector->values
汉字化
: elem + 构造内容是一系列序数的 + need to fix = build-vector
5.2.10 额外例程
(require ming/racket/vector) | package: ming |
汉字化
? : elem + 是否是空 = vector-empty?
汉字化
+ : = vector-set*!
汉字化
佫 : = vector-map
汉字化
挌 : = vector-map!
汉字化
: = vector-append
汉字化
: = vector-take
汉字化
𨚞 : = vector-take-right
汉字化
: = vector-drop
汉字化
: = vector-drop-right
汉字化
分 : = vector-split-at
汉字化
汉字化
: = vector-copy
汉字化
: = vector-filter
汉字化
: = vector-filter-not
汉字化
巨 : = vector-count
汉字化
佫之 : = vector-argmin
汉字化
佫之 : = vector-argmax
汉字化
弓 : = vector-member
汉字化
弓/ : = vector-memv
汉字化
弓/ : = vector-memq
汉字化
𠆯 : = vector-sort
汉字化
: = vector-sort!