shithub: mc

ref: d798a21d16cbd1d866752fbde81871012a789ea8
dir: /lib/std/sleq.myr/

View raw version
pkg std =
	generic sleq	: (a : @a[:], b : @a[:] -> bool)
;;

generic sleq = {a, b
	var i

	if a.len != b.len
		-> false
	;;

	for i = 0; i < a.len; i++
		if a[i] != b[i]
			-> false
		;;
	;;
	-> true
}