mirror of
https://github.com/typst/typst
synced 2025-05-13 20:46:23 +08:00
10 lines
146 B
XML
10 lines
146 B
XML
// Test case distinction.
|
|
|
|
---
|
|
$ f(x, y) := cases(
|
|
1 quad &"if" (x dot.op y)/2 <= 0,
|
|
2 &"if" x divides 2,
|
|
3 &"if" x in NN,
|
|
4 &"else",
|
|
) $
|