shithub: mc

ref: 545d75324d8ad1d9f8f9977b0911e8e9e0704674
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
}