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

Stability | provisional |

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

Safe Haskell | None |

# Documentation

setOf :: Getting (Set c) a b c d -> a -> Set cSource

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`

a c -> a ->`Set`

c`setOf`

::`Ord`

c =>`Fold`

a c -> a ->`Set`

c`setOf`

::`Simple`

`Iso`

a c -> a ->`Set`

c`setOf`

::`Simple`

`Lens`

a c -> a ->`Set`

c`setOf`

::`Ord`

c =>`Simple`

`Traversal`

a c -> a ->`Set`

c