diff options
Diffstat (limited to 'lib/collections.nom')
| -rw-r--r-- | lib/collections.nom | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/collections.nom b/lib/collections.nom index 1d22bb6..c58d2f7 100644 --- a/lib/collections.nom +++ b/lib/collections.nom @@ -159,6 +159,8 @@ rule [%items sorted by %key] =: %copy = (% for all %items) sort %copy by %key %copy +rule [unique %items] =: + keys in (dict from entries ([%,yes] for all %items)) # Metatable stuff compile [counter] to: "setmetatable({}, {__index=function() return 0; end})" |
