shithub: mc

ref: 30ae6dbd5eb7c7f8c9c76a32723dd33c5f90978b
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;;
	;;
}