Racket Libraries
5.1 
5.2 双 and 􏿴
5.3 􏻿
5.4 􏿰
5.5 
5.6 勺
5.7 
5.8 
5.9 􏺃
5.10 Conditionals
5.11 
5.12 
5.13 未分类
5.10 Conditionals
On this page:
5.10.1 丫,􏸣、􏸟
5.10.2 并、戈
5.10.3 当、肖,夬
5.10.4 
5.10.5 References
􏸣
􏸟
8.12

5.10 ConditionalsπŸ”—

5.10.1 丫,􏸣、􏸟πŸ”—

🐘 􏸞

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

  • 􏸣: 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.

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

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

'equal

> (􏸣 (= 1 1) 'equal)

'equal

> (􏸟 (= 1 2) 'unequal)

'unequal

5.10.2 并、戈πŸ”—

  • : simplifies for 𠀤 in ancient chinese, means merge two or more than two objects as one, especially means and in ming-lang.

  • : simplifies for , which means or in modern chinese.

Examples:
> ( 1 2 3)

3

> ( 1 2 3)

1

> ( #t #t #f)

#f

> ( #f #f #t)

#t

5.10.3 当、肖,夬πŸ”—

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

  • : means resemble, case in modern chinese.

  • : simplifies for 缺/决 in ancient chinese, means absent/burst, especially means when no conditions or cases take effect in ming-lang.
    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.

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.10.4 πŸ”—

🐘 𥟍

: means not in modern chinese.

Examples:
> ( 1)

#f

> ((𥟍 𥥪?) 1)

#t

5.10.5 ReferencesπŸ”—

汉字化

 : 【MORE】 = if

汉字化

􏸣 :  +  【MORE】 = when

汉字化

􏸟 : 􏸣 +  【MORE】 = unless

汉字化

 : 【MORE】 = and

汉字化

 : 【MORE】 = or

汉字化

 : 【MORE】 = case

汉字化

 : 【MORE】 = cond

汉字化

 : 【MORE】 = else

汉字化

 : 【MORE】 = not