Racket Libraries
5.1 
5.2 双 and 􏿴
5.3 􏻿
5.4 􏿰
5.5 
5.6 勺
5.7 
5.8 
5.9 
5.10 􏺃
5.11 Conditionals
5.12 
5.13 
5.14 未分类
On this page:
5.3.1 Naming Rules
5.3.2 􏻿 􏻽 􏻼, 􏻿? 􏻽? 􏻼?, 􏻸?
5.3.3 􏻺 􏻻 􏻹
5.3.4 􏻿巨, 􏻿弔, 􏻿𠆯 􏻿􏽒
5.3.5 􏻼化, 􏻿化􏿴 􏿴化􏻿 􏻿􏾝化並
5.3.6 􏻿􏾺 􏻿􏷵 􏻿􏸄 􏻿􏾝
5.3.7 􏻿弓, 􏻿􏷑 􏻿􏷉, 􏻿􏹈 􏻿􏹇
5.3.8 􏻿􏾩 􏻿𢪛, 􏻺𰅡, 􏻿𢪛/  以􏾝
5.3.9 基础例程
􏻿
􏻿?
􏻺
􏻼
􏻿巨
􏻿弔
􏻿􏾩
􏻿化􏿴
􏿴化􏻿
􏻼化
􏻺𰅡
􏻿𢪛/  以􏾝
􏻿􏾝化並
􏻻
5.3.10 额外例程
􏻸?
􏻿𢪛
􏻿􏷑
􏻿􏷉
􏻹
􏻿􏾺
􏻿𨚞
􏻿􏷵
􏻿􏷴
􏻿􏸄
􏻿􏸃
􏻿􏾝
􏻿􏹈
􏻿􏹇
􏻿􏹈巨
􏻿􏷑􏺗
􏻿􏷑􏺘
􏻿弓
􏻿弓/  􏾗
􏻿弓/  􏾃
􏻿𠆯
􏻿􏽒
8.13.0.9

5.3 􏻿🔗

Originates from Vectors and Extends to 􏻿.

5.3.1 Naming Rules🔗

To extend Naming Rules, specifically there are:

Character

Connotation

Elucidation

Example

 as component

direct modification

directly modify the orignal data and return void

􏻿􏾩 􏻿􏽒 􏻿􏷉

Phrase

prefixed with 􏻿

􏻿 as input

implies the type of input data is 􏻿

􏻿巨 􏻿弔 􏻿𠆯

suffixed with 

minor type convertion

implies slightly convert the type of input data, i.e. from mutable to immutable.

􏻼化

inserted with 

type convertion

implies convert the type of input data, i.e. from 􏻿 to 􏿴.

􏻿化􏿴 􏿴化􏻿

5.3.2 􏻿 􏻽 􏻼, 􏻿? 􏻽? 􏻼?, 􏻸?🔗


􏻿: : originally means arrow, especially means vector. , originally means ten, especially means fixed length. .
zi
􏻽: 𭕄: is the horizontal way to write , which is simplified from , originally means water, especially means mutable(水?).
zi
􏻼: : originally means mountain, especially means immutable(山?).
zi
􏻸: .
zi

Examples:
> (􏻽 1 2 3 4)

'#(1 2 3 4)

> (􏻽? (􏻽 1 2 3 4))

#t

> (􏻼 1 2 3 4)

'#(1 2 3 4)

> (􏻼? (􏻼 1 2 3 4))

#t

> (􏻽? (􏻿 1 2 3 4))

#t

> (􏻼? '#(1 2 3 4))

#t

> (􏻿? (􏻿 1 2 3 4))

#t

> (􏻿? (􏻽 1 2 3 4))

#t

> (􏻿? (􏻼 1 2 3 4))

#t

> (􏻸? (􏻿))

#t

> (􏻸? #())

#t

5.3.3 􏻺 􏻻 􏻹🔗

🐘 􏼓 􏼎 􏿝

Examples:
> (􏻺 5 'foo)

'#(foo foo foo foo foo)

> (􏻻 5 􏽊)

'#(1 2 3 4 5)

> (􏻹 '#(1) '#(2) '#(3) '#(4))

'#(1 2 3 4)

5.3.4 􏻿巨, 􏻿弔, 􏻿𠆯 􏻿􏽒🔗

🐘  𠆯

Examples:
> (􏻿巨 '#(1 2 3 4))

4

> (􏻿弔 '#(a b c d) 2)

'c

> (􏻿𠆯 '#(1 222 35 4) <)

'#(1 4 35 222)

> (􏻿􏽒 (􏻿 1 222 35 4) <)

5.3.5 􏻼化, 􏻿化􏿴 􏿴化􏻿 􏻿􏾝化並🔗

🐘 􏻼 􏻿􏾝

Examples:
> (􏻼化 '#(a b c d))

'#(a b c d)

> (􏿴化􏻿 '(a b c d))

'#(a b c d)

> (􏻿化􏿴 '#(a b c d))

'(a b c d)

> (􏻿􏾝化並 '#(a b c d) 0 2)

'a

'b

5.3.6 􏻿􏾺 􏻿􏷵 􏻿􏸄 􏻿􏾝🔗

🐘 􏾺 􏸄 􏾝

Examples:
> (􏻿􏾺 '#(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.3.7 􏻿弓, 􏻿􏷑 􏻿􏷉, 􏻿􏹈 􏻿􏹇🔗

🐘  􏷑 􏹇

Examples:
> (􏻿弓 'c '#(a b 1 c 2 d 3 e))

3

> (􏻿􏷑 􏽊 '#(1 2 3 4))

'#(2 3 4 5)

> (􏻿􏹈 􏻛? '#(1 2 -3 4))

'#(1 2 4)

> (􏻿􏹇 􏻛? '#(1 2 -3 4))

'#(-3)

> ( vec (􏻿 1 2 3 4))
> (􏻿􏷉 􏽊 vec)

'#(2 3 4 5)

> vec

'#(2 3 4 5)

5.3.8 􏻿􏾩 􏻿𢪛, 􏻺𰅡, 􏻿𢪛/以􏾝🔗

🐘 􏾝

🐘 􏻿􏾝

Examples:
> ( vec (􏻿 'a 'b 'c 'd))
> vec

'#(a b c d)

> (􏻿􏾩 vec 1 'x)
> vec

'#(a x c d)

> (􏻿𢪛 vec 1 'h 2 'i 3 'j)
> vec

'#(a h i j)

> (􏻺𰅡 vec 'z)
> vec

'#(z z z z)

> (􏻿𢪛/以􏾝 vec 0 '#(aa bb cc dd) 1 3)
> vec

'#(bb cc z z)

5.3.9 基础例程🔗

composition

􏻿 :  +  = vector

composition

􏻿? : 􏻿 + ? = vector?

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.3.10 额外例程🔗

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!