shithub: mc

ref: 1ee90265d5f764cb54b49531c4b247c5f404491c
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)
	else
		-> false
	;;
}