5.2
Originates from Vectors and Extends to .
5.2.1 Naming Rules
To extend Naming Rules, specifically there are:
Character | Connotation | Elucidation | Example |
direct modification | directly modify the orignal data and return void | ||
Phrase | – | – | – |
as input | implies the type of input data is | ||
minor type convertion | implies slightly convert the type of input data, i.e. from mutable to immutable. | ||
type convertion |
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 |
composition
composition
composition
: 三 + = make-vector
composition
: 山 + = vector-immutable
composition
巨 : + 巨 = vector-length
composition
弔 : + 弔 = vector-ref
composition
: + = vector-set!
composition
化 : + 化 + = vector->list
composition
化 : + 化 + = list->vector
composition
化 : + 化 = vector->immutable-vector
composition
𰅡 : + 𰅡 = vector-fill!
composition
𢪛/以 : 𢪛 + / + 以 = vector-copy!
composition
化並 : + 化 + 並 = vector->values
composition
: 弓 + = build-vector
5.2.10 额外例程
(require ming/racket/vector) | package: ming |
composition
? : + ? = vector-empty?
composition
𢪛 : + 𢪛 = vector-set*!
composition
: + = vector-map
composition
: + = vector-map!
composition
: 毌 + = vector-append
composition
: + = vector-take
composition
𨚞 : + 𨚞 = vector-take-right
composition
: + = vector-drop
composition
: + = vector-drop-right
composition
: + = vector-split-at
composition
: + = vector-split-at-right
composition
: + = vector-copy
composition
: + = vector-filter
composition
: + = vector-filter-not
composition
巨 : + + 巨 = vector-count
composition
: + + = vector-argmin
composition
: + + = vector-argmax
composition
弓 : + 弓 = vector-member
composition
弓/ : 弓 + / + = vector-memv
composition
弓/ : 弓 + / + = vector-memq
composition
𠆯 : + 𠆯 = vector-sort
composition
: + = vector-sort!