Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype UniqueSet unique = UniqueSet {}
- insertByUnique :: Coercible unique Unique => unique -> UniqueSet unique -> UniqueSet unique
- insertByName :: HasUnique name unique => name -> UniqueSet unique -> UniqueSet unique
- singletonName :: HasUnique name unique => name -> UniqueSet unique
- fromFoldable :: Foldable f => (i -> UniqueSet unique -> UniqueSet unique) -> f i -> UniqueSet unique
- fromUniques :: Foldable f => Coercible Unique unique => f unique -> UniqueSet unique
- fromNames :: Foldable f => HasUnique name unique => f name -> UniqueSet unique
- memberByUnique :: Coercible unique Unique => unique -> UniqueSet unique -> Bool
- memberByName :: HasUnique name unique => name -> UniqueSet unique -> Bool
- notMemberByName :: HasUnique name unique => name -> UniqueSet unique -> Bool
- (\\) :: UniqueSet unique -> UniqueSet unique -> UniqueSet unique
- union :: UniqueSet unique -> UniqueSet unique -> UniqueSet unique
- setOfByUnique :: Coercible unique Unique => Getting (UniqueSet unique) s unique -> s -> UniqueSet unique
- setOfByName :: HasUnique name unique => Getting (UniqueSet unique) s name -> s -> UniqueSet unique
Documentation
newtype UniqueSet unique Source #
A set containing Unique
s. Since Unique
is equivalent to Int
(see PlutusCore.Name.Unique), we can use an IntSet
representation for this type.
insertByUnique :: Coercible unique Unique => unique -> UniqueSet unique -> UniqueSet unique Source #
Insert a unique
.
insertByName :: HasUnique name unique => name -> UniqueSet unique -> UniqueSet unique Source #
Insert the unique
associated to the name
.
singletonName :: HasUnique name unique => name -> UniqueSet unique Source #
Create the singleton set of the unique
associated to the name
.
fromFoldable :: Foldable f => (i -> UniqueSet unique -> UniqueSet unique) -> f i -> UniqueSet unique Source #
memberByUnique :: Coercible unique Unique => unique -> UniqueSet unique -> Bool Source #
Is the unique
a member of the set?
memberByName :: HasUnique name unique => name -> UniqueSet unique -> Bool Source #
Is the name
associated to the unique
a member of the set?
notMemberByName :: HasUnique name unique => name -> UniqueSet unique -> Bool Source #
The negation of memberByName
, useful for converting to operator form,
e.g. name
.notMemberByName
set
(\\) :: UniqueSet unique -> UniqueSet unique -> UniqueSet unique Source #
The difference of two UniqueSet
s.
union :: UniqueSet unique -> UniqueSet unique -> UniqueSet unique Source #
The union of two UniqueSet
s.