| Portability | portable |
|---|---|
| Stability | provisional |
| Maintainer | Edward Kmett <ekmett@gmail.com> |
| Safe Haskell | None |
Data.HashSet.Lens
Description
Documentation
setOf :: Hashable c => Getting (HashSet c) a b c d -> a -> HashSet cSource
Construct a set from a Getter, Fold, Traversal, Lens or Iso.
>>>setOf (folded._2) [("hello",1),("world",2),("!!!",3)]fromList [1,2,3]
setOf::Hashablec =>Gettera c -> a ->HashSetcsetOf:: (Eqc,Hashablec) =>Folda c -> a ->HashSetcsetOf::Hashablec =>SimpleIsoa c -> a ->HashSetcsetOf::Hashablec =>SimpleLensa c -> a ->HashSetcsetOf:: (Eqc,Hashablec) =>SimpleTraversala c -> a ->HashSetc