Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Set
module Data.Set
Optics
setOf :: Getting (Set a) s a -> s -> Set a #
Construct a set from a Getter
, Fold
, Traversal
, Lens
or Iso
.
>>>
setOf folded ["hello","world"]
fromList ["hello","world"]
>>>
setOf (folded._2) [("hello",1),("world",2),("!!!",3)]
fromList [1,2,3]
setOf
::Getter
s a -> s ->Set
asetOf
::Ord
a =>Fold
s a -> s ->Set
asetOf
::Iso'
s a -> s ->Set
asetOf
::Lens'
s a -> s ->Set
asetOf
::Ord
a =>Traversal'
s a -> s ->Set
a