shithub: mc

ref: 9543bdfe516ddde6d347bffed6a99c9ec5c0c40b
dir: /lib/std/sleq.myr/

View raw version
use "types"
use "memops"

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

generic sleq = {a, b
	if a.len == b.len
		-> memeq((a : byte#), (b : byte#), a.len * sizeof(@a))
	else
		-> false
	;;
}