add ListIsUnique lowlevel operation

This commit is contained in:
Folkert 2022-05-06 13:56:35 +02:00
parent fcfe66f84d
commit 5755475b3a
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
9 changed files with 29 additions and 0 deletions

View file

@ -1355,3 +1355,9 @@ pub fn listFindUnsafe(
return .{ .value = null, .found = false };
}
}
pub fn listIsUnique(
list: RocList,
) callconv(.C) bool {
return list.isEmpty() or list.isUnique();
}