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

Stability | provisional |

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

Safe Haskell | Safe-Infered |

# 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 :: Iso a b c d -> a -> Set c setOf :: Lens a b c d -> a -> Set c setOf :: Ord c => Traversal a b c d -> a -> Set c