shithub: mc

ref: 48d725508d3c6759e9560c26f87de19acd5c5b59
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
	;;
}