shithub: mc

ref: ed41ed3c67d9b7149b3f5b6234e3a2b9a9cef2a3
dir: /test/matcharray.myr/

View raw version
use std

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

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