8.16
Racket’s Procedures is especially called 禾 in Ming.
5.13.1 禾、禾?π
禾 connotation : procedure
originates from :
程 originally means : journey, progress
5.13.2 入、π
Examples:
> (入 () 空) |
#<procedure> |
> (名 fun | ( [() #f] | [(x) x] | [(x y) ( x y)] | [(x y z) ( x y z)])) |
|
> (fun) |
#f |
> (fun 1) |
1 |
> (fun 1 2) |
'(1 2) |
> (fun 1 2 3) |
'#(1 2 3) |
5.13.3 ,π
Examples:
> (( 分) '("a" "b" "c") 2) |
: undefined; |
cannot reference an identifier before its definition |
in module: top-level |
> (( 句化 ) '("a" "b" "c")) |
: undefined; |
cannot reference an identifier before its definition |
in module: top-level |
Example:
> (( '1) 'a 'b 'c 'd) |
'(a b c d) |
5.13.5 Base Referencesπ
入 λ connotation : lambda
originates from :
入 originally means : entrance, get in
Implies the input data is procedure instead of normal data.
Examples: 攸/入.
名 connotation : define
originates from :
名 originally means : name
令 connotation : let
originates from :
令 originally means : let, order
5.13.6 Additional Referencesπ