8.16
5.10 同🔗
5.10.1 同? ? 冃? ?🔗
同 connotation : equal always
originates from :
同 originally means : equal, as same as
冃 connotation : simply equal
originates from :
冃 originally means : hat
Ignore the original meaning in Chinese, and especially take it as the simplification version of
同 in Ming. (Do not confuse with
月)
:
𭕄 +
同 connotation : equal without mutable
Almost same as
同 other than that
𭕄 implies difference about mutable data.
:
冃 +
米 connotation : only equal on numbers
Almost same as
冃 other than that
米 implies difference about numbers.
Examples:
> (同? ( #\a #\b #\c) ( #\a #\b #\c)) |
#t |
> (同? ( #\a #\b #\b) ( #\a #\b #\b)) |
#t |
> (同? ( 1 2) ( 1 2)) |
#t |
> (同? (expt 2 100) (expt 2 100)) |
#t |
Examples:
> (? ( #\a #\b #\b) ( #\a #\b #\b)) |
#f |
> (? ( #\a #\b #\b) ( #\a #\b #\b)) |
#t |
> (? ( 1 2) ( 1 2)) |
#t |
> (? (expt 2 100) (expt 2 100)) |
#t |
Examples:
> (冃? ( #\a #\b #\c) ( #\a #\b #\c)) |
#f |
> (冃? ( #\a #\b #\b) ( #\a #\b #\b)) |
#f |
> (冃? ( 1 2) ( 1 2)) |
#f |
> (冃? (expt 2 100) (expt 2 100)) |
#f |
Examples:
> (? ( #\a #\b #\c) ( #\a #\b #\c)) |
#f |
> (? ( #\a #\b #\b) ( #\a #\b #\b)) |
#f |
> (? ( 1 2) ( 1 2)) |
#f |
> (? (expt 2 100) (expt 2 100)) |
#t |
5.10.2 ming/racket/base🔗