shithub: mc

ref: 14d657bd447f9384130ba321324052d94a420ca1
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
}