mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 07:41:12 +00:00
add ListIsUnique lowlevel operation
This commit is contained in:
parent
fcfe66f84d
commit
5755475b3a
9 changed files with 29 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue