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 未分类
5.11 Conditionals
On this page:
5.11.1 丫,􏸣、􏸟
5.11.2 并、戈
5.11.3 当、肖,夬
5.11.4 
5.11.5 References
􏸣
􏸟
8.15

5.11 ConditionalsπŸ”—

5.11.1 丫,􏸣、􏸟πŸ”—

🐘 􏸞

  • : imagine a data flow that is importing in, and there are two paths it can be exported out.
    ideograph

  • 􏸣: for the data flow case of , imagine as a barrier which has blocked one direction of the export paths, thus the other export path is extended.
    ideograph

  • 􏸟: (􏸟 a b1 ...) is short for (􏸣 ( a) b1 ...).
    ideograph

Examples:
> ( (= 1 1) 'equal 'unequal)

'equal

> (􏸣 (= 1 1) 'equal)

'equal

> (􏸟 (= 1 2) 'unequal)

'unequal

5.11.2 并、戈πŸ”—

  • : simplified from 𠀤 in ancient chinese, means merge two or more than two objects as one, stands for and in Ming.
    ideograph

  • : simplified from , which means or in modern chinese.
    ideograph

Examples:
> ( 1 2 3)

3

> ( 1 2 3)

1

> ( #t #t #f)

#f

> ( #f #f #t)

#t

5.11.3 当、肖,夬πŸ”—

  • : means when, on the condition of in modern chinese.
    ideograph

  • : means resemble, case in modern chinese.
    ideograph

  • : simplified from 缺/决 in ancient chinese, means absent/burst, stands for when no conditions or cases take effect in Ming.
    Imagine that the data flow is importing in, lots of conditions and cases are implemented as export paths, is a breaking point for data to export when no valid conditions and cases are effective.
    ideograph

Examples:
> (
    [(􏻛? 0) (displayln "positive number")]
    [(􏻛? 0) (displayln "negative number")]
    [ (displayln "neither positive or negative number")])

neither positive or negative number

> ( (+ 1 1)
    [(1) (displayln "result is 1")]
    [(2) (displayln "result is 2")]
    [ (displayln "result is neither 1 or 2")])

result is 2

5.11.4 πŸ”—

🐘 𥟍

: means not in modern chinese.
ideograph

Examples:
> ( 1)

#f

> ((𥟍 𥥪?) 1)

#t

5.11.5 ReferencesπŸ”—

word

 :  = if

word

􏸣 : elem + needtofix + + + needtofix = when

word

􏸟 : elem + needtofix + + + needtofix = unless

word

 :  = and

word

 :  = or

word

 :  = case

word

 :  = cond

word

 :  = else

word

 :  = not