shithub: mc

ref: 3d20a6d5e0c554e9f3d0d3f504f4dfb28901ebb7
dir: /test/stdopt-mk.myr/

View raw version
use std

const f = {x
	if x == 123
		-> `std.Some 42
	else
		-> `std.None
	;;
}

const main = {
	var v
	
	v = f(123)
	match v
	`std.Some x:	-> x;;
	`std.None:	-> 123;;
	;;
}