summaryrefslogtreecommitdiff
path: root/test/matcharray.myr
blob: 38e3688e51192bb466278757b379eaedf37d28fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
use std

const main = {
	var v = [2, 40, 10]

	match v
	| [x, y, 10]:	
		 -> x + y
	| _:	std.die("Wat")
	;;
	-> 0
}