Portability | portable |
---|---|

Stability | provisional |

Maintainer | Edward Kmett <ekmett@gmail.com> |

Safe Haskell | Safe-Inferred |

# Documentation

setOf :: Getting (Set a) s t a b -> s -> Set aSource

Construct a set from a `Getter`

, `Fold`

, `Traversal`

, `Lens`

or `Iso`

.

`>>>`

fromList [1,2,3]`setOf (folded._2) [("hello",1),("world",2),("!!!",3)]`

`setOf`

::`Getter`

s a -> s ->`Set`

a`setOf`

::`Ord`

a =>`Fold`

s a -> s ->`Set`

a`setOf`

::`Simple`

`Iso`

s a -> s ->`Set`

a`setOf`

::`Simple`

`Lens`

s a -> s ->`Set`

a`setOf`

::`Ord`

a =>`Simple`

`Traversal`

s a -> s ->`Set`

a