5.4
Originates from Hash Tables and Extends to .
5.4.1 Naming Rules
Rule | Connotation | Elucidation | Example |
minor type | similar to but differentiate in how keys work or other details. | ||
-- | -- | ||
-- | -- | ||
-- | -- | ||
-- | -- | ||
-- | when it meets family chars(, etc.), the input will be object futher. | ||
?^ | is subset of an object | implies that more than one same type objects and output type is boolean. | |
+ | -- | -- |
5.4.2
🐘
5.4.3
///: resemble . 口: /: /: /=: are simplified way to write 同///冃, which indicate the keys are uniqued by using which comparison procedures.
5.4.4
5.4.5
//: resemble . ⺮: same as cnchar 竹, which means bamboo, but borrowed to stands for stongly restained keys in Ming; 艹: same as cnchar 草, which means grass, but borrowed to stands for weakly reatined keys in Ming; : "retains keys strongly or merely weakly".
5.4.6 ^ ^ ^ ^,^ ^ ^ ^,^ ^ ^ ^,^ ^ ^ ^,化
> (^ '((1 . 2) (3 . 4))) '#hash((1 . 2) (3 . 4))
> (? (^ '((1 . 2) (3 . 4)))) #t
> (^ '((1 . 2) (3 . 4))) '#hash((1 . 2) (3 . 4))
> (? (^ '((1 . 2) (3 . 4)))) #f
> (^ '((1 . 2) (3 . 4))) '#hashalw((1 . 2) (3 . 4))
> (? (^ '((1 . 2) (3 . 4)))) #t
> (化 ( 1 2 3 4)) '((1 . 2) (3 . 4))
> (化 ( 1 2 3 4)) '((1 . 2) (3 . 4))
> (化 ( 1 2 3 4)) '((1 . 2) (3 . 4))
5.4.7 ?, ? ? ? ?, ? ? ?, ?
> (? ( 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))) '#hash((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)))) #f
> (? (^ '((1 . 2) (3 . 4)))) #t
> (? ( 'a "aa" 'b "bb")) #f
> (? ()) #t
5.4.8 ,日?
5.4.9 弔 𫼛,,
> (弔 ( 'a "apple" 'b "banana") 'b) "banana"
> (弔 ( 'a "apple" 'b "banana") 'b "cat") "banana"
> (弔 ( 'a "apple" 'b "banana") 'c "cat") "cat"
> ( ( 'a "apple" 'b "banana") 'b) 'b
> ( ( 'a "apple" 'b "banana") 'b "cat") 'b
> ( ( 'a "apple" 'b "banana") 'c "cat") "cat"
> ( ( 'a "apple" 'b "banana") 'a) '#hash((b . "banana"))
> (名 h ( 'a "apple" 'b "banana")) > (𫼛 h 'b "cat") "banana"
> h '#hash((a . "apple") (b . "banana"))
> (𫼛 h 'c "cat") "cat"
> h '#hash((a . "apple") (b . "banana") (c . "cat"))
> ( h 'a) > h '#hash((b . "banana") (c . "cat"))
5.4.10 攸 攸+, +,攸/入 /入
🐘 攸
> (攸 ( 'a "apple" 'b "banana") 'b "ba") '#hash((a . "apple") (b . "ba"))
> (攸+ ( 'a "apple" 'b "banana") 'a "ap" 'b "ba") '#hash((a . "ap") (b . "ba"))
> (攸/入 ( 'a "apple" 'b "banana" 'c 1) 'c ) '#hash((a . "apple") (b . "banana") (c . 2))
> (名 h ( 'a "apple" 'b "banana")) > (+ h 'a "ap" 'b "ba") > h '#hash((a . "ap") (b . "ba"))
5.4.11 𠛮 ,𠛮
5.4.12 化
🐘
5.4.13 ?^
🐘
5.4.14 巨 ?
🐘 巨 穴?
5.4.15 化
5.4.16 ming/racket/base
(require ming/racket/base) | package: ming |
5.4.17 ming/racket/hash
(require ming/racket/hash) | package: ming |