shithub: mc

ref: 87a293a736f0f9535ccc299dd7294552efd77743
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
}