summaryrefslogtreecommitdiff
path: root/test/match.myr
blob: e73d04e255d593a4441b2c07d4a159d5013e07ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
const m = {v
	match v
	1:	-> 42;;
	2:	-> 81;;
	3:	-> 123;;
	4:	-> 99;;
	_:	-> 8
	;;
}

const main = {
	-> m(2)
}