shithub: mc

ref: 0eae465b2ba82f8a0e49c869bddd37b85ec2e5ae
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
}