aboutsummaryrefslogtreecommitdiff
path: root/spec/inputs/in_expression.yue
blob: dacf820c02a3313f53f388489ddc3bda71b7bbda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
-a^2 in {1, 2, 3} |> f

a, b = x(...) not in [1, 3], 2

d = (tb.x.y ...) not in [1, 3]

has = "foo" in { "bar", "foo" }

if a in {1} and b in {2, 3, 4} or c in [1, 10]
	print a, b, c

switch val
	when 1, 2, 3
		print "1, 2, 3"

	when not in (0, 100]
		print "not (0 < val <= 100)"

	when in [200, 300)
		print "200 <= val < 300)"

	when not in {333, 444, 555}
		print "not 333, 444 or 555"

do return y not in (a, b)

nil