summaryrefslogtreecommitdiff
path: root/lib/std/traits.myr
blob: 1c5678b1ec6cda545622ba6f36806c9903651ae5 (plain)
1
2
3
4
5
6
7
8
9
pkg std =
	trait comparable @a =
		cmp	: (a : @a, b : @a -> bool)
	;;

	trait hashable @a =
		hash	: (a : @a -> uint64)
	;;
;;